fuliqi
2023-12-18 f11afb84d32ed6d2b582ed193db2f9805cd365ec
ycl-platform/src/main/java/com/ycl/timer/GetDingToken.java
@@ -26,7 +26,7 @@
 */
@Slf4j
@Component
public class GetDingToken implements ApplicationListener<ContextRefreshedEvent> {
public class GetDingToken implements  ApplicationListener<ContextRefreshedEvent> {
    private static GetClient getTokenClient;
    @Autowired
    private StringRedisTemplate redisTemplate;
@@ -96,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);