|
|
|
@ -10,6 +10,7 @@ import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
import org.springframework.scheduling.annotation.Async;
|
|
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
@ -37,7 +38,7 @@ public class FireQuartz {
|
|
|
|
|
* 保存所有数据
|
|
|
|
|
*/
|
|
|
|
|
@Async
|
|
|
|
|
// @Scheduled(cron = "0 */5 * * * ? ")
|
|
|
|
|
@Scheduled(cron = "0 */5 * * * ? ")
|
|
|
|
|
public void savaData() {
|
|
|
|
|
log.info("119接口开始" + LocalDateTime.now());
|
|
|
|
|
QuartzLog quartzLog = new QuartzLog();
|
|
|
|
|