使用ApplicationRunner或CommandLineRunner ExitCodeGenerator

如果想在springboot項目啓動之後執行一些代碼,可以通過使用ApplicationRunner或CommandLineRunner兩種方式實現 https://github.com/licunzhi/dream_on_sakura_rain/tree/master/springboot_initAction_demo github項目代碼(裏面包含了ExitCodeGenerator的使用案
相關文章
相關標籤/搜索