title: Location of spring-context.xml
body: <p>When I run my application on tomcat the spring-context.xml file is located at </p>
  
  <blockquote>
    <p>/WEB-inf/spring-context.xml</p>
  </blockquote>
  
  <p>This is ok. But running a junit test I have to supply it with the location of my spring-test-context.xml like this: </p>
  
  <pre><code>@ContextConfiguration(locations={"classpath:/spring-test-context.xml"})
  </code></pre>
  
  <p>The only way this works is if the file is located in </p>
  
  <blockquote>
    <p>/src/spring-context.xml</p>
  </blockquote>
  
  <p>How can I get my application to find my spring-context files in the same location? So that it works with junit testes and deployed on tomcat?</p>
  
  <p>I tried this and it gave me alot of errors about not finding any beans, but it didn't say it couldn't find the file..</p>
  
  <pre><code>classpath:/WEB-INF/spring-test-context.xml
  </code></pre>