spring配置文件

<?xml version="1.0" encoding="UTF-8"?>

   xmlns:context="http://www.springframework.org/schema/context"
   xmlns:util="http://www.springframework.org/schema/util"
   xmlns="http://www.springframework.org/schema/beans"
   xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd
         http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
<context:annotation-config/>
<bean id="propertyConfigurer"
      class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
    <property name="ignoreUnresolvablePlaceholders" value="true"/>
    <property name="fileEncoding" value="UTF-8"/>
    <property name="locations">
        <list>
            <value>classpath:prop/jdbc.properties</value>
            <value>classpath:prop/important.properties</value>
            <!--<value>classpath:prop/ok.important.properties</value>-->
            <value>classpath:prop/application.properties</value>
        </list>
    </property>
    <property name="properties" ref="secApplicationProperties"/>
</bean>

<bean id="secApplicationProperties" class="com.公司.security.configsec.spring.config.类">
    <property name="ignoreResourceNotFound" value="true"/>
    <property name="secLocation" value="classpath:prop/important.properties"/>
</bean>

<import resource="classpath:/spring/spring-dao.xml"/>
<import resource="classpath:/spring/spring-ref.xml"/>
<import resource="classpath:/spring/spring-ump.xml"/>
<import resource="classpath:/spring/spring-publish.xml"/>

<util:list id="">

</util:list>






上一篇:Spring 文件上传功能


下一篇:剑指Offer刷题(python版)