title: Spring application context file location in IntelliJ
body: <p>I am trying to figure out where to put the <code>spring application context XML</code> file (mapping Service Beans) in a <code>IntelliJ</code> generated <code>Spring MVC</code> template. If I put it in the <code>WEB-INF</code> folder, it complains when I import the XML in the <code>dispatcher servlet XML</code> file. If i put it in the webapp folder, tomcat complains that it can't find it in the <code>WEB-INF</code> folder. So where do I actually put it?</p>
  
  <p>The template generated by <code>IntelliJ</code> for a <code>Spring MVC</code> application has a 'pages' folder inside <code>webapp dir</code>. Do I have to put my <code>jsps</code> there or in the <code>WEB-INF</code> folder as in Eclipse? How is the root context path mapped to this folder when deployed in <code>Tomcat</code>?</p>
  
  <p><img src="https://i.stack.imgur.com/0aIF7.jpg" alt="spring application XML"></p>