@EnableTransactionManagement
@SpringBootApplication(
scanBasePackages = {},
exclude = {QuartzAutoConfiguration.class,
MongoAutoConfiguration.class})
public class ServiceApplication implements CommandLineRunner {
public static void main(String[] args) throws Exception {
SpringApplication.run(ServiceApplication.class, args);
}
@Override
public void run(String... args) throws Exception {
// 业务逻辑...
}
}
springboot启动时执行任务CommandLineRunner
最新推荐文章于 2022-11-09 14:44:39 发布
关键词由CSDN通过智能技术生成