28 lines
823 B
Java
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();
|
|
}
|
|
}
|