|
@@ -9,6 +9,7 @@ import org.slf4j.LoggerFactory;
|
9
|
9
|
import org.springframework.beans.factory.annotation.Autowired;
|
10
|
10
|
import org.springframework.context.annotation.Configuration;
|
11
|
11
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
12
|
+import org.springframework.scheduling.annotation.Scheduled;
|
12
|
13
|
import org.springframework.stereotype.Component;
|
13
|
14
|
|
14
|
15
|
import java.time.LocalDateTime;
|
|
@@ -53,7 +54,7 @@ public class JudglActivityTimeJob extends BaseController {
|
53
|
54
|
/**
|
54
|
55
|
* 开启定时任务,每天12:30执行
|
55
|
56
|
*/
|
56
|
|
-// @Scheduled(cron = "* 0/5 * * * ?")
|
|
57
|
+ @Scheduled(cron = "* 0/5 * * * ?")
|
57
|
58
|
private void configureTasks() {
|
58
|
59
|
String time = DateUtils.cutSecond(LocalDateTime.now());
|
59
|
60
|
|