From b0db21cae6416355aef7ebf53c2696283a8bc23e Mon Sep 17 00:00:00 2001 From: 沈斌 <bluelazysb@hotmail.com> Date: Thu, 02 Nov 2017 05:13:52 +0800 Subject: [PATCH] 保存历史数据至mongodb --- src/main/resources/application.xml | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/main/resources/application.xml b/src/main/resources/application.xml index 8655f73..479dc5a 100644 --- a/src/main/resources/application.xml +++ b/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"/> -- Gitblit v1.8.0