spring中加载配置文件 org.springframework.beans.factory.config.PropertyPlaceholderConfigurer

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
    xmlns:jee="http://www.springframework.org/schema/jee
    xmlns:jaxws="http://cxf.apache.org/jaxws
    xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"  
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd 
           http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.0.xsd 
           http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd 
           http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd ">  
       
     <bean id="propertyConfigurer"
  class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
  <property name="locations">
   <list>
    <value>classpath:webserviceurl.properties</value>
   </list>
  </property>
 </bean>
</beans>

 

部署到tomcat后的时候,会自动出现在classpath下面

posted @ 2013-07-26 15:53  wanggd_blog  阅读(17580)  评论(0编辑  收藏  举报