工业级运维app手机api
沈斌
2017-11-02 b0db21cae6416355aef7ebf53c2696283a8bc23e
src/main/resources/application.xml
@@ -10,8 +10,20 @@
       http://www.springframework.org/schema/mvc
       http://www.springframework.org/schema/mvc/spring-mvc.xsd">
    <context:component-scan base-package="com.moral.monitor.controller"/>
    <context:component-scan base-package="com.moral.monitor.service"/>
    <!--<context:component-scan base-package="com.moral.monitor.controller"/>-->
    <!--<context:component-scan base-package="com.moral.monitor.service"/>-->
    <context:component-scan base-package="com.moral.monitor.*"/>
    <bean id="PropertiesConfigurer"
          class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="locations">
            <list>
                <value>classpath:log4j.properties</value>
                <value>classpath:redis-config.properties</value>
                <value>classpath:mongodb-config.properties</value>
            </list>
        </property>
    </bean>
    <mvc:annotation-driven>
        <mvc:message-converters register-defaults="true">
@@ -47,6 +59,7 @@
    </bean>-->
    <import resource="redis.xml"/>
    <import resource="mongodb.xml"/>
    <import resource="database.xml"/>
    <import resource="rabbitmq.xml"/>
    <import resource="quartz.xml"/>