自动任务配置

<task:scheduled ref="ExcelController" method="customerExcel" cron="0 0 0 0 1/1 ?"/>

类名:ExcelController

方法:customerExcel

自动任务时间选择:cron(网上可以查到匹配参数)

原文地址:https://www.cnblogs.com/cuijinlong/p/6396771.html