如何解决Spring Boot整合Redis报错的问题?
Redis Assistant 是一款为Redis设计的高效可视化管理与监控工具,提供多种操作模式,高效处理服务器数据。日常使用里的持续防护和信息管理会更突出,适合把安全控制放进长期使用流程中的场景。
错误一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
再次启动
火山引擎是字节跳动旗下企业级云与AI服务平台。聚焦大模型核心能力,依托字节自研豆包多模态大模型,凭借火山方舟一站式平台,提供模型精调、推理部署、智能应用搭建等全链路服务,结合高性能AI算力,助力各行业快速落地大模型数字化与智能化应用。
















