Commit f3a31c11 by 雷紫添

添加任务调度

parent 49dafb8d
...@@ -26,7 +26,7 @@ public class ScheduleTask { ...@@ -26,7 +26,7 @@ public class ScheduleTask {
private Logger logger= LoggerFactory.getLogger(ScheduleTask.class); private Logger logger= LoggerFactory.getLogger(ScheduleTask.class);
@Scheduled(cron = "0 */1 * * * ?") @Scheduled(cron = "1 1 1 1/1 * ?")
public void taskForDictUpdate(){ public void taskForDictUpdate(){
logger.info("This is a say method!"+format.format(new Date())); logger.info("This is a say method!"+format.format(new Date()));
xxbsSerevice(); xxbsSerevice();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment