0
点赞
收藏
分享

微信扫一扫

SpringBoot项目启动是@Autowired出现报Could not autowire. No beans of ‘XXX‘ type found.

minute_5 2022-01-22 阅读 101

在springboot项目启动之后弹出如下错误提示:Field redisTemplate in com.zgl.modules.user.controller.RegisterController required a bean of type 'org.springframework.data.redis.core.RedisTemplate' that could not be found.

可将@Autowired换成@Resource

举报

相关推荐

0 条评论