在spring boot項目啓動後按順序執行指定代碼

在spring boot項目啓動後按順序執行指定代碼 CommandLineRunner接口 ApplicationRunner接口 CommandLineRunner接口 @Order(2)//指定執行順序 @Component public class AfterServiceStarted implements CommandLineRunner{ @Override //
相關文章
相關標籤/搜索