Browse Source

解决店铺处置完成任务实例化4个的问题

huxz 8 years ago
parent
commit
12b9ad1ad7
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/main/webapp/WEB-INF/spring/webmvc.xml

+ 4 - 2
src/main/webapp/WEB-INF/spring/webmvc.xml

@@ -32,7 +32,7 @@
 
 	</mvc:annotation-driven>
 
-	<mvc:annotation-driven />
+	<!--<mvc:annotation-driven />-->
 
 	<mvc:default-servlet-handler />
 
@@ -42,7 +42,9 @@
 	<mvc:resources mapping="/images/static/**" location="/resources/" />
 	<mvc:resources mapping="/shop/static/**" location="/resources/" />
 
-	<context:component-scan base-package="com.uas.platform" />
+	<context:component-scan base-package="com.uas.platform" >
+		<context:exclude-filter type="annotation" expression="org.springframework.scheduling.annotation.EnableScheduling"/>
+	</context:component-scan>
 
 	<bean class="org.springframework.mobile.device.view.LiteDeviceDelegatingViewResolver">
 		<constructor-arg>