title: Getting an EhCache instance with Spring... intelligently
body: <p>I need to get a specific EhCache instance by name and I'd prefer to autowire if possible. Given the following automatically configured controller, how can I autowire in the cache instance I'm looking for?</p>
  
  <pre><code>@Controller 
  public class MyUniqueService {
      ...
  }
  </code></pre>
  
  <hr>
  
  <pre><code>&lt;beans ...&gt;
      &lt;ctx:component-scan base-package="my.controllers"/&gt;
      &lt;mvc:annotation-driven /&gt;
  &lt;/beans&gt;
  </code></pre>
  
  <p>How do I configure EhCache in my application context? I don't see any log messages from EhCache about it loading the ehcache.xml file in my <code>/WEB-INF/</code> directory. How do I make it load it? </p>
  
  <p>How can I integrate EhCache with my Spring application to have it load the <code>ehcache.xml</code> file from my <code>/WEB-INF/</code> directory and autowire a cache by a given name into my <code>MyUniqueService</code> controller? </p>