如果要使用
task:annotation-driven方法并且@Scheduled注释不起作用,则很可能
context:component-scan在上下文xml中丢失了。没有此行,spring无法猜测在哪里搜索注释。
<context:component-scan base-package="..." />

如果要使用
task:annotation-driven方法并且@Scheduled注释不起作用,则很可能
context:component-scan在上下文xml中丢失了。没有此行,spring无法猜测在哪里搜索注释。
<context:component-scan base-package="..." />