Error creating bean with name 'redisTemplate' defined in class path resource
时间: 2023-09-20 17:14:28 浏览: 246
引用。此外,可能是由于jedis和spring-boot-starter-data-redis的maven依赖的版本不兼容导致的。可以尝试更改这些依赖的版本来解决问题。另外,还有一种解决方案是只引入jedis依赖即可。通过尝试这些解决方案,应该能够解决创建redisTemplate bean时的报错问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [SpringBoot2.x.x以上版本整合redis报错:Error creating bean with name ‘redisTemplate‘...](https://blog.csdn.net/weixin_42825651/article/details/114091919)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [Redis trouble13 -- Error creating bean with name stringRedisTemplate defined in class path resource](https://blog.csdn.net/weixin_39523456/article/details/120163787)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文