✅ 操作成功!

Consider defining a bean of type ‘org.springframework.cache.CacheManager‘ in your configuration.

发布时间:2023-06-12 作者:admin 来源:文学

Consider defining a bean of type ‘org.springframework.cache.CacheManager‘ in your configuration.

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