如何解决Spring Boot整合Redis报错的问题?
作者:BlueNight
时间:2023-04-27
浏览:5
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
再次启动
作者最新文章
TapTap怎么查看玩过的游戏记录 入口在哪
2026-11-21 16:45
搜狗输入法电脑端麦克风检测不到 声音设置排查
2026-11-19 10:59
Claude Fable 5.2与Mythos 5.2短时过载已缓解:故障范围与重试排查
2026-11-12 17:11
office无法安装0-2060 安装步骤和注意事项
2026-11-02 15:45
立刻MV苹果端最新版本更新了哪些功能?使用变化解析
2026-10-31 13:24
热门文章
更多
精品专题
更多
Mac软件
更多
WINDOWS
更多

































