Files
foton-slrs-system-rest/adc-da-slrs/src/main/java/com/adc/da/scheduled/ScheduledJobRunner.java
T
2022-09-27 15:53:27 +08:00

28 lines
823 B
Java

package com.adc.da.scheduled;
import com.adc.da.search.conf.SchedulerConf;
import com.adc.da.search.util.InitStandAttrSearchUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
@Component
@Order(value = 2)
public class ScheduledJobRunner implements ApplicationRunner {
private static final Logger logger = LoggerFactory.getLogger(ScheduledJobRunner.class);
@Autowired
private SchedulerConf schedulerConf;
@Override
public void run(ApplicationArguments args) throws Exception {
schedulerConf.startByIp();
}
}