Unable to connect to Redis] with root cause
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis] with root cause
springboot运行不了,报错原因
redis无法连接
错误原因显示"Caused by: java.net.ConnectException: Connection refused: no further information"
此种情况一般都是Redis服务器没有启动或者配置文件参数配置错误造成的。
注意配置文件格式
spring.data.redis.host=192.168.187.140
spring.data.redis.port=6379
spring.data.redis.database=0
spring.data.redis.jedis.pool.max-wait=-1ms
原文地址:https://blog.csdn.net/qq_73735007/article/details/140550394
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!