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

  • 相关阅读:
    #RunJS# 最少代码的瀑布流实现
    浏览器“Web Freer”,直接上twitter、facebook等国外的网站,附带去掉广告的方法。
    fixed固定块背景,滚动的时候却换背景
    成为一个顶级设计师的八大秘诀
    Font Awesome设计原理分析
    IE6PNG透明解决办法(2)js
    有趣的反汇编
    我这个用notepad的小可怜虫..
    自修改代码(SMC)技术学习
    lua绑定C++对象学习
  • 原文地址:https://www.cnblogs.com/1012hq/p/11167892.html
Copyright © 2020-2023  润新知