spring-base.xml

Posted 1012hq

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spring-base.xml相关的知识,希望对你有一定的参考价值。

<?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:context="http://www.springframework.org/schema/context"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:jdbc="http://www.springframework.org/schema/jdbc"
    xmlns:jee="http://www.springframework.org/schema/jee"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
    http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.0.xsd
    http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-4.0.xsd
    http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
    http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd"
    default-lazy-init="false">

  <description>Spring入口配置文件</description>

  <bean id="propertyConfigurer" class="avicit.platform6.core.spring.EncryptPropertyPlaceholderConfigurer">
    <property name="locations">
      <list>
        <value>classpath*:/platform6.properties</value>
        <value>classpath*:/jdbc.properties</value>
        <value>classpath*:/quartz.properties</value>
        <value>classpath*:/platform6_ext.properties</value>   //这里是项目中所使用的properties文件,在这里配置好以后,项目中就可以直接使用properties文件中的属性值了
      </list>
    </property>
  </bean>

  <!-- 平台数据源连接设置 -->
  <import resource="classpath*:spring-hibernate.xml"/>

  <!-- 平台API实现 -->
  <import resource="classpath*:spring-api.xml"/>

  <!-- redis设置 -->
  <import resource="classpath*:spring-redis.xml"/>

  <!-- <import resource="classpath*:/spring-jms.xml" /> -->

  <import resource="classpath*:/spring-shiro.xml"/>

  <import resource="classpath*:/spring-common.xml"/>

  <import resource="classpath*:/configuration/spring/spring-assembly-*.xml"/>

  <import resource="classpath*:avicit/**/configuration/spring-module.xml"/>

  <import resource="classpath*:spring-mybatis.xml"/>

  <import resource="classpath*:spring-webservice.xml"/>

  <import resource="classpath*:spring-config-exception.xml"/>

  <context:component-scan base-package="avicit">
    <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
    <context:exclude-filter type="regex" expression="avicit\.platform6.*.configMVC.*"/>
  </context:component-scan>
  <aop:aspectj-autoproxy/>
</beans>

以上是关于spring-base.xml的主要内容,如果未能解决你的问题,请参考以下文章