It depends on what configuration you are talking about. ehcache.xml contains some global configuration (for example, the location of the disk overflow directory), as well as a cache-specific configuration.
If you're talking about the latter, you can use Spring EhCache support (i.e. EhCacheFactoryBean and EhCacheManagerFactoryBean ) to configure and manage EhCache instances.
If you are talking about global configuration, I do not know how to do this.
source share