Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable....

tech2022-08-06  127

Handling error: RedisConnectionFailureException, Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to 192.168.66.129:6379

错误原因:Redis应连接本地Redis,将"192.168.66.129"改成”127.0.0.1“,注释掉”spring.redis.password“,并添加”spring.redis.timeout=5000“,如下所示: 问题解决!!!

最新回复(0)