- 该`<task:annotation-driven
- />`注释结束了声明ScheduledAnnotationBeanPostProcessor在你的代码读取@Scheduled注释。参见此处:[http](http://static.springsource.org/spring/docs/3.1.x/javadoc-
- api/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessor.html)
- //static.springsource.org/spring/docs/3.1.x/javadoc-
api/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessor.html。
这样就可以了
<task:annotation-driven/>。要进行组件扫描,您需要使用AnnotationConfigApplicationContext。虽然不确定/如何与Web容器一起工作。



