title: External directory with static content in Tomcat with SpringMVC
body: <p>I have an app which should save content (user avatars) in some directory, for example <em>C:\avadir</em>. In my app I'm using <em>SpringMVC</em>. I need to show user defined avatars. For this I have to configure Tomcat to use this external directory.
  I have such opthions in my <strong>ROOT.xml</strong>, placed in <strong>%CATALINA_HOME%\conf\Catalina\localhost</strong>:</p>
  
  <pre><code>&lt;Context path="/ava" docBase="c:/avadir" debug="0" reloadable="true" crossContext="true" /&gt;
  </code></pre>
  
  <p>and next settings in my <code>servlet-context.xml</code>:</p>
  
  <pre><code>&lt;resources mapping="/ava/**" location="/ava/" /&gt;
  </code></pre>
  
  <p>After set up this settings I still can't get access to my file placed in <em>C:\avadir\file.jpg</em> by url <em>localhost:8080/ava/file.jpg</em>.
  Is there something missed?</p>