当前位置:   article > 正文

解决SpringBoot 连接Redis出错:RedisConnectionFailureException: Unable to connect to Redis_redis connection failed; nested exception is io.le

redis connection failed; nested exception is io.lettuce.core.redisconnection

今天练习的时候发现用idea使用springboot连接redis有如下错误:

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

后面查找了很多发现在配置文件中做出如下修改:

修改前:

修改后:

作出修改后问题解决!!!

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/天景科技苑/article/detail/879063
推荐阅读
相关标签
  

闽ICP备14008679号