I am trying to figure out where to put the spring application context XML file (mapping Service Beans) in a IntelliJ generated Spring MVC template. If I put it in the WEB-INF folder, it complains when I import the XML in the dispatcher servlet XML file. If i put it in the webapp folder, tomcat complains that it can't find it in the WEB-INF folder. So where do I actually put it?
The template generated by IntelliJ for a Spring MVC application has a 'pages' folder inside webapp dir. Do I have to put my jsps there or in the WEB-INF folder as in Eclipse? How is the root context path mapped to this folder when deployed in Tomcat?

