Spring not able to resolve property
<p>I am using spring 4 and using the PropertySourcesPlaceholderConfigurer for 2 configuration files.My xml is:</p>

<pre><code>&lt;?xml  version="1.0" encoding="UTF-8"?&gt;
&lt;beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:jee="http://www.springframework.org/schema/jee"
    xmlns:lang="http://www.springframework.org/schema/lang"
    xmlns:p="http://www.springframework.org/schema/p"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:mvc="http://www.springframework.org/schema/mvc"
    xmlns:util="http://www.springframework.org/schema/util"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
        http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee.xsd
        http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang.xsd
        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
        http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.0.xsd
        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"&gt;

    &lt;tx:annotation-driven /&gt;

    &lt;context:component-scan 
        base-package="com.a2bnext.controller,com.a2bnext.dao,com.a2bnext.service,com.a2bnext.util"/&gt;
    &lt;mvc:annotation-driven /&gt;

    &lt;bean id="propertyConfigurer"
        class="org.springframework.context.support.PropertySourcesPlaceholderConfigurer"&gt;
        &lt;property name="locations"&gt;
            &lt;list&gt;
                &lt;value&gt;/WEB-INF/database.properties&lt;/value&gt;
                &lt;value&gt;/WEB-INF/app.properties&lt;/value&gt;               
            &lt;/list&gt;
        &lt;/property&gt; 
        &lt;property name="location" value="/WEB-INF/database.properties" /&gt;
    &lt;/bean&gt;

    &lt;bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"
        destroy-method="close"&gt;
        &lt;property name="driverClassName" value="${jdbc.driverClassName}" /&gt;
        &lt;property name="url" value="${jdbc.url}" /&gt;
        &lt;property name="username" value="${jdbc.username}" /&gt;
        &lt;property name="password" value="${jdbc.password}" /&gt;
        &lt;property name="initialSize" value="${jdbc.initialSize}" /&gt;
        &lt;property name="maxActive" value="${jdbc.maxActive}" /&gt;
        &lt;property name="minIdle" value="${jdbc.minIdle}" /&gt;
    &lt;/bean&gt;

    &lt;bean id="sessionFactory" class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"&gt;
       &lt;property name="dataSource" ref="dataSource"&gt;&lt;/property&gt;
       &lt;property name="hibernateProperties"&gt;
          &lt;props&gt;
             &lt;prop 
             key="hibernate.dialect"&gt;org.hibernate.dialect.MySQL5Dialect&lt;/prop&gt;
             &lt;prop key="hibernate.show_sql"&gt;true&lt;/prop&gt;
             &lt;prop key="format_sql"&gt;true&lt;/prop&gt;
             &lt;prop key="use_sql_comments"&gt;true&lt;/prop&gt;
             &lt;prop key="use_jdbc_metadata_defaults"&gt;false&lt;/prop&gt;
          &lt;/props&gt;
       &lt;/property&gt;
       &lt;property name="packagesToScan" value="com.a2bnext.entity" /&gt;
    &lt;/bean&gt;

    &lt;bean id="transactionManager"
        class="org.springframework.orm.hibernate4.HibernateTransactionManager"&gt; 
        &lt;property name="sessionFactory" ref="sessionFactory" /&gt;
    &lt;/bean&gt;

    &lt;!-- &lt;bean id="jspViewResolver"
        class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
        &lt;property name="viewClass"
            value="org.springframework.web.servlet.view.JstlView" /&gt;
        &lt;property name="prefix" value="/WEB-INF/view/" /&gt;
        &lt;property name="suffix" value=".jsp" /&gt;
    &lt;/bean&gt; --&gt;

     &lt;!-- Resolves views selected for rendering by @Controllers to .jsp resources in the /WEB-INF/views directory --&gt;
     &lt;bean id="tilesConfigurer"
        class="org.springframework.web.servlet.view.tiles3.TilesConfigurer"&gt;
        &lt;property name="definitions"&gt;
            &lt;list&gt;
                &lt;value&gt;/WEB-INF/tiles.xml&lt;/value&gt;
            &lt;/list&gt;
        &lt;/property&gt;
    &lt;/bean&gt;
    &lt;bean id="tilesViewResolver"
        class="org.springframework.web.servlet.view.UrlBasedViewResolver"&gt;
        &lt;property name="viewClass"&gt;
            &lt;value&gt;
                org.springframework.web.servlet.view.tiles3.TilesView
            &lt;/value&gt;
        &lt;/property&gt;
        &lt;property name="order" value="0"/&gt;
    &lt;/bean&gt;
    &lt;bean id="multipartResolver"
        class="org.springframework.web.multipart.commons.CommonsMultipartResolver"&gt;
        &lt;property name="maxUploadSize" value="1048576"/&gt;
    &lt;/bean&gt;
&lt;/beans&gt;
</code></pre>

<p>In my Service class I am using:</p>

<pre><code>package com.a2bnext.service;

import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.commons.io.IOUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.Base64Utils;
import org.springframework.web.multipart.MultipartFile;

import com.a2bnext.dao.A571DAO;
import com.a2bnext.dao.ReceivingNumberDAO;
import com.a2bnext.entity.A571;
import com.a2bnext.entity.ReceivingNumber;


@Service
public class FileUploadServiceImpl implements FileUploadService {
    @Value("${supporting.documents.location}")
    private String supportingDocumentsLocation;


    @Override
    @Transactional
    public Map getResponse(MultipartFile multipartFile) throws IOException {
        System.out.println("Documents location is :"+supportingDocumentsLocation);
        HashMap&lt;String, Object&gt; map = new HashMap&lt;String, Object&gt;();
        Long size = multipartFile.getSize();
        String originalFileName=multipartFile.getOriginalFilename();
        String contentType = multipartFile.getContentType();
        InputStream inputStream = multipartFile.getInputStream();
        byte[] bytes = IOUtils.toByteArray(inputStream);
        if(size&gt;(5*1024*1024)) 
        {
            map.put("fileoriginalsize", size);
            map.put("msg", "failed");
            map.put("reason", "File size cannot be greater than 5MB");
            return map;
        }
        String newFileName=generateFileName();
        // Create the file on server
        File serverFile = new File("D:"+File.separator+"Uploads"+ File.separator + newFileName);
        BufferedOutputStream outputStream = new BufferedOutputStream(
                new FileOutputStream(serverFile));
        outputStream.write(bytes);
        outputStream.close();

        map.put("fileoriginalsize", size);
        map.put("contenttype", contentType);
        map.put("base64", new String(Base64Utils.encode(bytes)));
        map.put("name", newFileName);
        return map;
    }
}
</code></pre>

<p>My app.properties file :</p>

<blockquote>
  <p>supporting.documents.location = D:\uploads</p>
</blockquote>

<p>However when I start the application I get the error:</p>

<blockquote>
  <p>Could not resolve placeholder 'supporting.documents.location' in string value "${supporting.documents.location}"</p>
</blockquote>

<p>Please suggest why I am getting the error.Thanks.</p>