- 博客(1)
- 收藏
- 关注
原创 Springboot项目启动报错 Parameter 0 of method stringRedisTemplate in XXX
问题是注入StringRedisTemplate后启动后端时报错:Consider defining a bean of type 'org.springframework.data.redis.core.RedisTemplate' in your configuration。在springboot启动类上添加注解 @ComponentScan(basePackages = { “XXX” }),引号里面代表扫描方法,启动后还是报错。再次运行发现还是报该错误,继续往下看了看。将子类引入的pom改为了。
2024-07-18 14:29:55
1132
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅