无法将占位符解析为系统属性:既未找到系统属性,也未找到环境变量

时间:2015-05-01 12:03:32

标签: java spring

无法解决占位符' server.conf'在file:///${server.conf}/his-config.properties中作为系统属性:既未找到系统属性也未找到环境变量

他-CONFIG-spring.xml

   <beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:tx="http://www.springframework.org/schema/tx"
   xsi:schemaLocation="http://www.springframework.org/schema/beans                   
   http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
   http://www.springframework.org/schema/tx 
   http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">



 <bean id="placeholderConfig"
    class="com.napier.core.boc.spring.PropertyPlaceholderConfigurater">
    <property name="ignoreResourceNotFound" value="true" />
    <property name="locations">
        <list>
            <value>file:///${server.conf}/his-config.properties</value>
            <!-- <value>classpath:his-config.properties</value> -->
        </list>
    </property>
   </bean>
</beans>

0 个答案:

没有答案