| 1234567891011121314151617181920212223242526272829 |
- package com.xjrsoft.module.job;
- import cn.hutool.extra.spring.SpringUtil;
- import lombok.extern.slf4j.Slf4j;
- import org.springframework.scheduling.annotation.Scheduled;
- import org.springframework.stereotype.Component;
- /**
- * @author dzx
- * @date 2024/1/25
- */
- @Component
- @Slf4j
- public class ScheduleAdjustTask {
- @Scheduled(cron = "0 0 22 * * ?")
- public void RefreshConnectionPool() {
- String active = SpringUtil.getActiveProfile();
- if("prod".equals(active)){
- log.info("非正式环境,无法执行获取课表数据");
- return;
- }
- //doExecute();
- }
- void doExecute(){
- }
- }
|