I used caching in my SpringBootApplication as shown below.
@SpringBootApplication
@EnableCaching
public class SampleApplication extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(SampleApplication.class);
}
public static void main(String[] args) {
SpringApplication.run(SampleApplication.class, args);
}
This works absolutely fine.
But to implement caching, one required CacheManager / Cacheprovider must be installed. Without identifying any cacheManager, my application also works fine.
Is there a default cache manager defined by Spring? Spring docs says Spring Boot automatically configures the appropriate CacheManager.
So what will CacheManager use if we don't define it?
source
share