Commit 5e9e1033 authored by renandong's avatar renandong 🇨🇳

1,定时任务更新标签

parent f047f356
...@@ -4,6 +4,9 @@ import org.springframework.boot.SpringApplication; ...@@ -4,6 +4,9 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync; import org.springframework.scheduling.annotation.EnableAsync;
/**
* @author Administrator
*/
@SpringBootApplication @SpringBootApplication
@EnableAsync @EnableAsync
public class PushMessageApplication { public class PushMessageApplication {
......
...@@ -55,7 +55,8 @@ public class UserTagsTask { ...@@ -55,7 +55,8 @@ public class UserTagsTask {
/** /**
* 更新用户标签 * 更新用户标签
*/ */
@Scheduled(cron = "0 0 23 * * ?") // @Scheduled(cron = "0 0 23 * * ?")
@Scheduled(cron = "0 56 * * * ?")
public void updateUserTags() { public void updateUserTags() {
try { try {
//获取每次处理的id起始值 //获取每次处理的id起始值
......
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