2020-02-07

Spring EhCache Caching

EhCache 2.x

EhCache 2.x is used if a file named ehcache.xml can be found at the root of the classpath. If EhCache
2.x is found, the EhCacheCacheManager provided by the spring-boot-starter-cache “Starter” is used to
bootstrap the cache manager. An alternate configuration file can be provided as well, as shown in
the following example:
spring.cache.ehcache.config=classpath:config/another-config.xml

No comments:

Post a Comment