赞
踩
idea报错无法连接到redis
org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is org.springframework.data.redis.connection.PoolException: Could not get a resource from the pool; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 127.0.0.1:6379
到application.yaml里面检查redis部分的配置是否正确,包括IP地址,端口号,密码
我这里的原因是不知道为什么密码以前设置过,后面似乎没保存,又要设置一次redis的密码
在命令行输入redis-cli
之后
config set requirepass 123456
重启springboot程序之后重新登录就好使了!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。