自动化立体仓库 - WMS系统
13
zhang
2 小时以前 55eb3d480594f4c0dd382eaeeb8548bf911d6ad7
src/main/java/com/zy/common/task/ActivateScheduler.java
@@ -5,10 +5,8 @@
import com.core.common.DateUtils;
import com.zy.common.properties.OSinfo;
import com.zy.common.properties.SystemProperties;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import java.util.Date;
/**
@@ -17,9 +15,10 @@
@Component
public class ActivateScheduler {
    @Scheduled(cron = "0/1 * 8 * * ? ")
    @PostConstruct
    private void execute(){
    //    @Scheduled(cron = "0/1 * 8 * * ? ") // 每天8点
//    @Scheduled(cron = "* 0/1 * * * ? ") // 每分钟
//    @PostConstruct
    private void execute() {
        // 获取激活码
        String activationCode = SystemProperties.getActivationCode(OSinfo.getOSname().getActivationCodePath());
        if (!Cools.isEmpty(activationCode)) {