1、properties文件中增加配置项: datasync.cron=0 */10 * * * ? 2、定时任务类增加PropertySource注解: @PropertySource(“class … Continue reading @Schedule注解中的Cron表达式读取properties的方法
1、properties文件中增加配置项: datasync.cron=0 */10 * * * ? 2、定时任务类增加PropertySource注解: @PropertySource(“class … Continue reading @Schedule注解中的Cron表达式读取properties的方法