美文网首页我爱编程
spring mvc配置 计时任务

spring mvc配置 计时任务

作者: zl1995 | 来源:发表于2018-06-09 23:17 被阅读28次

    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/>

    相关文章

      网友评论

        本文标题:spring mvc配置 计时任务

        本文链接:https://www.haomeiwen.com/subject/xfixeftx.html