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

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-19 18:20:02       67 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-19 18:20:02       71 阅读
  3. 在Django里面运行非项目文件

    2024-07-19 18:20:02       58 阅读
  4. Python语言-面向对象

    2024-07-19 18:20:02       69 阅读

热门阅读

  1. redis时间环结构-时序特征

    2024-07-19 18:20:02       19 阅读
  2. 欢迎来到 Mint Expedition:Web3 和 NFT 的新时代开始

    2024-07-19 18:20:02       23 阅读
  3. MySQL运算符

    2024-07-19 18:20:02       22 阅读
  4. 【gradle中如何不使用插件将依赖打进jar包】

    2024-07-19 18:20:02       18 阅读
  5. web前端面向对象面试25题

    2024-07-19 18:20:02       18 阅读
  6. 【编程语言】C++和C的异同点

    2024-07-19 18:20:02       20 阅读
  7. 【React Hooks原理 - useSyncExternalStore】

    2024-07-19 18:20:02       14 阅读
  8. Ubuntu22.04:安装并配置nfs

    2024-07-19 18:20:02       19 阅读