在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
微信扫一扫
在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
相关推荐