1.在SpringMVC配置文件servlet-context.xml中添加
xmlns:task="http://www.springframework.org/schema/task"
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task-3.2.xsd
配置任务扫描
<task:annotation-driven/>
1.在SpringMVC配置文件servlet-context.xml中添加
xmlns:task="http://www.springframework.org/schema/task"
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task-3.2.xsd
配置任务扫描
<task:annotation-driven/>