Support property-based configuring of multiple Caffeine caches for Spring Cache abstraction.
Apache License 2.0
30
stars
7
forks
source link
java.lang.IllegalStateException: No CacheResolver specified, and no bean of type CacheManager found. Register a CacheManager bean or remove the @EnableCaching annotation from your configuration. #138
But when I try to run a test or boot my application I get:
java.lang.IllegalStateException: No CacheResolver specified, and no bean of type CacheManager found. Register a CacheManager bean or remove the @EnableCaching annotation from your configuration.
If I add a bean with a CacheManager:
@Bean
public CacheManager cacheManager() {
return new MultiConfigurationCacheManager();
}
My application runs but it doesn't look like my cache is configured per the .properties file:
Do I need to provide a CacheManager bean or does coffee-boots do that for me already? If it does, what am I doing wrong that causes the error I'm getting?
I have
@EnableCaching
on my application class.In application.properties I have:
But when I try to run a test or boot my application I get:
If I add a bean with a CacheManager:
My application runs but it doesn't look like my cache is configured per the .properties file:
gives me:
Do I need to provide a CacheManager bean or does coffee-boots do that for me already? If it does, what am I doing wrong that causes the error I'm getting?