在spring boot项目启动后按顺序执行指定代码

在spring boot项目启动后按顺序执行指定代码 CommandLineRunner接口 ApplicationRunner接口 CommandLineRunner接口 @Order(2)//指定执行顺序 @Component public class AfterServiceStarted implements CommandLineRunner{ @Override //
相关文章
相关标签/搜索