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

  • 相关阅读:
    让footer始终位于页面的最底部
    javascript拼接html代码
    vs2010 sp1安装
    jquery call 函数改变this作用域
    复选框选中提示车牌号正则表达式
    hibernate Session一级缓存 应该注意的地方
    整理的一些java中常使用jar包以及说明
    springmvc 生命周期
    struts2之constant 讲解 (转)
    装饰器模式
  • 原文地址:https://www.cnblogs.com/1012hq/p/11167892.html
Copyright © 2020-2023  润新知