我是靠谱客的博主 忧心纸飞机,这篇文章主要介绍springboot 连接redis报错 nested exception is redis.clients.jedis.exceptions.JedisConnectionException,现在分享给大家,希望可以做个参考。

报错信息如下:
严重: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool] with root cause
因为虚拟机里 linux 系统上的 ip 地址变了,springboot 里的配置文件忘记改了。
输入[root@localhost bin]# ip addr 查看 ip 地址
改掉配置文件就行了
spring.redis.host=

最后

以上就是忧心纸飞机最近收集整理的关于springboot 连接redis报错 nested exception is redis.clients.jedis.exceptions.JedisConnectionException的全部内容,更多相关springboot内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(106)

评论列表共有 0 条评论

立即
投稿
返回
顶部