如何解决Spring Boot整合Redis报错的问题?
作者:BlueNight
时间:2023-04-25
浏览:3
Redis Assistant
Redis Assistant 是一款为Redis设计的高效可视化管理与监控工具,提供多种操作模式,高效处理服务器数据。日常使用里的持续防护和信息管理会更突出,适合把安全控制放进长期使用流程中的场景。
¥19
Windows/macOS/Linux
2026-08-22
错误一org.springframework.data.redis.connection.RedisConnectionFactory’thatcouldnotbefound错误二Errorcreatingbeanwithname‘redisTemplate’definedinclasspathresource原因我是因为没有引入jedis依赖造成的报错。还有原因是由于jedis和spring-boot-starter-data-redis的maven依赖的版本不兼容导致,是经常会出现的问题
错误一
org.springframework.data.redis.connection.RedisConnectionFactory’ that could not be found
错误二
Error creating bean with name ‘redisTemplate’ defined in class path resource
原因
我是因为没有引入jedis依赖造成的报错。还有原因是由于jedis 和spring-boot-starter-data-redis 的maven依赖的版本不兼容导致, 是经常会出现的问题。出现JedisConnectionFactory 无法创建也是一样。
解决
只需要引入jedis依赖,即可解决
org.springframework.boot spring-boot-starter-data-redis redis.clients jedis
再次启动
作者最新文章
blender贴图文件在哪里查找与打开教程
2026-10-11 09:08
3ds Max动画播放卡顿或渲染跳帧的解决方法
2026-10-02 17:00
联发科天玑9600 Pro首发2nm:能效与游戏渲染技术详解
2026-09-08 16:54
Excel基础操作指南:数据录入、格式设置、公式应用与打印预览
2026-09-02 12:47
动画制作全流程:从故事板到关键帧与最终输出
2026-09-02 11:12
热门文章
更多
精品专题
更多
Mac软件
更多
WINDOWS
更多










































