<?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="org.well">
        <!--<context:include-filter type="annotation"  expression="org.springframework.stereotype."/>-->
    </context:component-scan>

    <!-- 默认通过application.properties读取配置 -->
    <bean id="applicationProperties" class="org.well.well.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="org.well.well.core.spring.MessageHelper"/>

    <bean class="org.well.well.core.logback.JulHandler"/>

    <bean id="applicationContextHelper" class="org.well.well.core.spring.ApplicationContextHelper"/>


</beans>
