Could not get a resource from the pool; nested exception is io.lettuce.core.RedisConnectionException

Could not get a resource from the pool; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to
java.net.ConnectException: Connection refused: connect

在这里插入图片描述

1.检查redis连接是否正常

在这里插入图片描述

2.检查eureck是否开启,连接是否正常

在这里插入图片描述
仔细检查.yml文件,开启配置连接是否正常。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
这个错误提示表明在调用Redis时无法从连接池中获取资源,并且无法连接到Redis服务器。根据引用\[1\]和引用\[2\]的错误信息,可能是由于连接池配置或Redis服务器配置的问题导致的。 根据引用\[3\]中的配置文件,可以看到Redis的地址是10.55.55.55,端口是6379。但是,这个配置文件中没有设置密码,如果Redis服务器需要密码验证,可能会导致连接失败。 此外,还需要检查连接池的配置。根据引用\[3\]中的配置,连接池的最小空闲连接数是0,最大空闲连接数是5,最大数据库连接数也是5。如果连接池中的连接数已经达到了最大值,而又有新的请求需要连接Redis,就会导致获取连接失败的错误。 综上所述,解决这个问题的步骤如下: 1. 确保Redis服务器的地址、端口和密码配置正确。 2. 检查连接池的配置,确保连接池中的连接数设置合理,不会超过Redis服务器的最大连接数。 希望这些信息对您有帮助。\[1\]\[2\]\[3\] #### 引用[.reference_title] - *1* [springboot整合redis报错:nested exception is io.lettuce.core.RedisConnectionException: Unable to connect](https://blog.csdn.net/qq_27608711/article/details/126220121)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [Could not get a resource from the poolnested exception is io.lettuce.core....](https://blog.csdn.net/weixin_44495678/article/details/124269329)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [Could not get a resource from the poolnested exception is io.lettuce.core.RedisConnectionException](https://blog.csdn.net/jiumingmao1991/article/details/121361782)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值