title: How to set location of ehcache.xml in spring java based configuration?
body: <p>I have this java based JPA configuration for my spring project:</p>
  
  <pre><code>@Configuration
  @EnableJpaRepositories(basePackageClasses = {PackageMarker.class})
  @EnableTransactionManagement(proxyTargetClass = true)
  @EnableCaching
  public class FooJPAConfig implements CachingConfigurer {
  
      @Bean
      @Override
      public CacheManager cacheManager() {
          SimpleCacheManager cacheManager = new SimpleCacheManager();
          cacheManager.setCaches(Arrays.asList(new ConcurrentMapCache("default")));
          return cacheManager;
      }
  
      @Bean
      @Override
      public KeyGenerator keyGenerator() {
          return new DefaultKeyGenerator();
      }
  
      //...
  
  }
  </code></pre>
  
  <p>How can I tell spring to use a specific <code>ehcache.xml</code> file?</p>