title: cannot read from properties file in spring mvc
body: <p>I'm always getting null value when reading properties from .properties file, i'm using spring framework 4.0.5 Release, and use Spring STS IDE,
  my code is like this :</p>
  
  <pre><code>@Component
  public class MenuClient {
  
       @Value("${menu.list}")
       private String url;
  
       public void showUrl() {
           System.out.println("url : " + url); //shows null
       }
  
  }
  </code></pre>
  
  <p>my spring configuration like this </p>
  
  <pre class="lang-xml prettyprint-override"><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans:beans xmlns="http://www.springframework.org/schema/mvc"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:beans="http://www.springframework.org/schema/beans"
     xmlns:context="http://www.springframework.org/schema/context"
     xsi:schemaLocation="http://www.springframework.org/schema/mvc    http://www.springframework.org/schema/mvc/spring-mvc.xsd
      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"&gt;
  
  &lt;!-- DispatcherServlet Context: defines this servlet's request-processing infrastructure --&gt;
  
  &lt;!-- Enables the Spring MVC @Controller programming model --&gt;
  
  
  &lt;!-- Handles HTTP GET requests for /resources/** by efficiently serving up static resources in the ${webappRoot}/resources directory --&gt;
  &lt;resources mapping="/assets/**" location="/resources/assets/" /&gt;
  &lt;annotation-driven /&gt;
  
  &lt;!-- Resolves views selected for rendering by @Controllers to .jsp resources in the /WEB-INF/views directory --&gt;
  &lt;beans:bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
      &lt;beans:property name="prefix" value="/WEB-INF/views/" /&gt;
      &lt;beans:property name="suffix" value=".jsp" /&gt;
  &lt;/beans:bean&gt;
  
  &lt;context:component-scan base-package="com.mycompany" /&gt;
  
  &lt;context:property-placeholder location="classpath:config.properties" /&gt;
  
  &lt;/beans:beans&gt;
  </code></pre>
  
  <p>here is my config.properties location :</p>
  
  <p><a href="https://i.stack.imgur.com/k3YGf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k3YGf.png" alt="file location"></a></p>
  
  <p>Is there any missing or wrong configuration in my project?</p>