修改关于说明文案
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user