You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.0 KiB
35 lines
1.0 KiB
package cn.jyjz;
|
|
|
|
import cn.jyjz.xiaoyao.ocr.service.OcrFrontConfService;
|
|
import org.springframework.boot.CommandLineRunner;
|
|
import org.springframework.boot.SpringApplication;
|
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
import org.springframework.cache.annotation.EnableCaching;
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
/**
|
|
* Hello world!
|
|
*
|
|
*/
|
|
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
|
|
@ComponentScan({"cn.jyjz.*"} )
|
|
@EnableCaching
|
|
@EnableScheduling
|
|
public class App implements CommandLineRunner {
|
|
|
|
@Resource
|
|
private OcrFrontConfService ocrFrontConfService;
|
|
public static void main(String[] args) {
|
|
SpringApplication.run(App.class, args);
|
|
}
|
|
|
|
@Override
|
|
public void run(String... args) {
|
|
ocrFrontConfService.updateConfig();
|
|
}
|
|
}
|