title: 'Application context not configured for this file' error after moving and renaming the default application-config.xml of IntelliJ IDEA
body: <p>I have created a Spring Mvc application using IntelliJ IDEA and then I moved and renamed the default application-config file to another directory.
  Now I am getting this error : 'Application context not configured for this file'
  The new place of the file is src/main/webapp/WEB-INF/spring/appServlet/servlet-context.xml</p>
  
  <p>The file is this one:</p>
  
  <pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:context="http://www.springframework.org/schema/context"
         xmlns:mvc="http://www.springframework.org/schema/mvc"
         xsi:schemaLocation="http://www.springframework.org/schema/beans
          http://www.springframework.org/schema/beans/spring-beans.xsd
          http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd"&gt;
  
      &lt;!-- Enables the Spring MVC @Controller programming model --&gt;
      &lt;mvc:annotation-driven/&gt;
  
      &lt;mvc:resources mapping="/resources/**" location="/"/&gt;
  
      &lt;bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
          &lt;property name="prefix" value="/WEB-INF/pages/"/&gt;
          &lt;property name="suffix" value=".jspx"/&gt;
      &lt;/bean&gt;
  
      &lt;context:component-scan base-package="com.apress.prospring3.ch17.web.controller"/&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>Any ideas?
  Thank you.</p>