Error creating bean with name 'redisConnectionFactory' defined in class path resourc
时间: 2023-10-18 08:30:05 浏览: 78
Python中对错误NameError: name ‘xxx’ is not defined进行总结
5星 · 资源好评率100%
引用和中提到了错误创建bean的问题,即无法创建redis连接池。这个问题通常是由于在Springboot整合的redis配置类中,redisTemplate方法传参的RedisConnectionFactory对象报错导致的。解决这个问题的方法是确保配置类中的依赖被正确配置,以避免出现java.lang.ClassNotFoundException: org.apache.commons.pool2.impl.GenericObjectPoolConfig这个类找不到的错误。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [解决Error creating bean with name ‘redisConnectionFactory‘ defined in class path resource......](https://blog.csdn.net/lvoelife/article/details/126404146)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Error creating bean with name ‘redisConnectionFactory‘ defined in class path resource](https://blog.csdn.net/weixin_58789905/article/details/127699607)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文