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

    <!-- 引入项目配置文件 -->
    <bean id="configProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean">
        <property name="locations">
            <list>
                <value>classpath:*.properties</value>
            </list>
        </property>
    </bean>
    <bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
        <property name="properties" ref="configProperties" />
    </bean>
    <!-- 自动扫描dao和service包(自动注入) -->
    <context:component-scan base-package="com.lightinit.hsdatashow.impl,com.lightinit.hsdatashow.repository,com.lightinit.hsdatashow.common,com.lightinit.hsdatashow.handler"></context:component-scan>
    <context:annotation-config></context:annotation-config>
    <import resource="classpath:spring-shiro.xml"/>
    <!--<import resource="classpath:spring-mongodb.xml"/>-->
    <import resource="classpath:spring-task.xml"/>
    <!--<import resource="classpath:spring-solr.xml"/>-->
    <!--<import resource="spring-activemq.xml"/>-->
    <!--<import resource="classpath:rabbitmq-content.xml"/>-->
</beans>