修改关于说明文案

This commit is contained in:
暮光:城中城
2020-09-06 21:49:09 +08:00
parent d0fa28eebe
commit 23461e7337
3 changed files with 11 additions and 8 deletions

View File

@@ -9,6 +9,7 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import java.io.IOException;
import java.io.StringReader;
import java.util.Objects;
@@ -22,6 +23,12 @@ public class SchedulerTask {
@Value("${zyplayer.doc.manage.upgradePropertiesUrl:''}")
private String upgradePropertiesUrl;
@PostConstruct
private void init() {
// 初始完成去加载一次
this.upgradeTask();
}
// @Scheduled(cron = "0 0/2 * * * ? ")
@Scheduled(cron = "0 0 1 * * ?")
public void upgradeTask() {