问题
Description:
Field userCache in com.rsy.springboot.demo.controller.UserController required a bean of type ‘org.springframework.cache.CacheManager’ that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type ‘org.springframework.cache.CacheManager’ in your configuration.
解决办法
添加注解
@EnableCaching
更多推荐
Consider defining a bean of type ‘org.springframework.cache.CacheManager‘ in you
发布评论