报错信息如下:
严重: 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
最新推荐文章于 2024-05-09 13:01:23 发布