码迷,mamicode.com
首页 > 编程语言 > 详细

spring-base.xml

时间:2019-07-11 09:51:13      阅读:145      评论:0      收藏:0      [点我收藏+]

标签:component   bean   aop   --   设置   reg   pac   figure   jdb   

<?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

标签:component   bean   aop   --   设置   reg   pac   figure   jdb   

原文地址:https://www.cnblogs.com/1012hq/p/11167892.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!