
Consider defining a bean of type ‘org.springframework.cache.CacheManager‘ in your configuration.
问题
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👁️ 阅读量:0
© 版权声明:本文《Consider defining a bean of type ‘org.springframework.cache.CacheManager‘ in your configuration.》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686554623a290562.html。