继承ApplicationRunner
@Slf4j
@Component
@Order(value = 1)
public class LogRunner implements ApplicationRunner {
@Override
public void run(ApplicationArguments args){
//初始化代码在这实现
}
}
继承ApplicationRunner
@Slf4j
@Component
@Order(value = 1)
public class LogRunner implements ApplicationRunner {
@Override
public void run(ApplicationArguments args){
//初始化代码在这实现
}
}