Newer
Older
EMS-WEB-3.0 / out / artifacts / ems_war_exploded / WEB-INF / classes / spring / applicationContext.xml
wxn on 9 Aug 2016 2 KB first commit
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns:tx="http://www.springframework.org/schema/tx"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
       http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd">

    <context:component-scan base-package="com.casic">
        <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
    </context:component-scan>

    <!-- 默认通过application.properties读取配置 -->
    <!--<bean id="applicationProperties" class="com.casic.accessControl.core.spring.ApplicationPropertiesFactoryBean"/>-->

    <!-- 定义受环境影响易变的变量 -->
    <!--<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">-->
        <!--<property name="properties" ref="applicationProperties"/>-->
    <!--</bean>-->

    <!-- 国际化 -->
    <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
        <property name="basenames" value="${application.i18n.packages}"/>
    </bean>

    <bean id="messageHelper" class="com.casic.accessControl.core.spring.MessageHelper"/>

    <bean class="com.casic.accessControl.core.logback.JulHandler"/>

    <bean id="applicationContextHelper" class="com.casic.accessControl.core.spring.ApplicationContextHelper"/>

    <bean id="exportor" class="com.casic.accessControl.core.ext.export.CsvExportor"/>

    <bean id="permissionDecorator" class="com.casic.accessControl.permission.PermissionDecorator" />

    <bean id="permissionChecker" class="com.casic.accessControl.permission.PermissionChecker" />

    <bean id="storeConnector" class="com.casic.accessControl.core.ext.store.FileStoreConnector">
        <property name="baseDir" value="${store.baseDir}"/>
    </bean>

    <!--start 人员登录权限相关 appId号改为各个分系统的id号-->

    <bean id="httpUrlSourceFetcher" class="com.casic.accessControl.permission.HttpUrlSourceFetcher"	scope="prototype">
        <!--<property name="relativePath" value="http://127.0.0.1:8080/ems/rs/authority/user" />-->
        <!--<property name="appId" value="1" />-->
    </bean>

    <!--end 人员登录权限相关-->

</beans>