1、类加注解
@PropertySource(value = {"WEB-INF/props/task.properties"})
2、方法注解
@Scheduled(cron = "${cronceshi}")
3、配置文件(task.properties)
cronceshi=* * * * * ?
1、类加注解
@PropertySource(value = {"WEB-INF/props/task.properties"})
2、方法注解
@Scheduled(cron = "${cronceshi}")
3、配置文件(task.properties)
cronceshi=* * * * * ?