Spring 4 properties file doesn't work
<p>I've tried to replace hardcoded db settings in the bean config to db.properties file like that:</p>

<pre><code>@Configuration
public class BeansConfig {

  private @Value("#{database['db.url']}") String dbURL;

   public ComboPooledDataSource dataSource() throws PropertyVetoException {
    ComboPooledDataSource dataSource = new ComboPooledDataSource();
    dataSource.setDriverClass("something");
    dataSource.setJdbcUrl(dbURL);
    dataSource.setUser("something")
    dataSource.setPassword("something")
    return dataSource;
   }
 }
</code></pre>

<p>But it doesnt' work. And it's highlighted, I can Ctrl-Click on it and it'll get me to the .properties file.
But when I'm starting app, it just doesn't work. It's trying to get to DB but it doesn't. When I'm changing <strong>dbURL</strong> on "url" itself it work smoothly.</p>

<p>Tried lot's of guides but it didn't helped.</p>

<p><strong>EDIT</strong></p>

<p><em>web.xml</em></p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;web-app version="2.4"&gt;

&lt;context-param&gt;
    &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
    &lt;param-value&gt;
        classpath:*/appSecurity.xml
        classpath:*/appContext.xml
    &lt;/param-value&gt;
&lt;/context-param&gt;

&lt;servlet&gt;
    &lt;servlet-name&gt;app&lt;/servlet-name&gt;
    &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
    &lt;init-param&gt;
        &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;
        &lt;param-value&gt;
            classpath:*/appContext.xml
        &lt;/param-value&gt;
    &lt;/init-param&gt;
    &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
&lt;/servlet&gt;

&lt;servlet-mapping&gt;
    &lt;servlet-name&gt;app&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/&lt;/url-pattern&gt;
&lt;/servlet-mapping&gt;

&lt;listener&gt;
    &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;
&lt;/listener&gt;

&lt;!-- Spring Security --&gt;
&lt;filter&gt;
    &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt;
    &lt;filter-class&gt;org.springframework.web.filter.DelegatingFilterProxy&lt;/filter-class&gt;
&lt;/filter&gt;

&lt;filter-mapping&gt;
    &lt;filter-name&gt;springSecurityFilterChain&lt;/filter-name&gt;
    &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
&lt;/filter-mapping&gt;
</code></pre>

<p></p>