zhanghua
2023-12-16 18653f874dc47c7a9ff007d57a59dac873deebdf
ycl-platform/src/main/java/com/ycl/timer/GetDingToken.java
@@ -8,6 +8,7 @@
import com.ycl.config.DingConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.data.redis.core.StringRedisTemplate;
@@ -95,7 +96,7 @@
    @Value("${spring.profiles.active}")
    private String env;
        @Scheduled(cron ="0 0/2 * * * ? ")
        @Scheduled(cron ="0 0/2 * * * ?")
//    @Scheduled(cron = "0/1 * * * * ?")   // 每秒执行
    public void runAction() {
//        System.out.println("环境:" + env);