使用ApplicationRunner或CommandLineRunner ExitCodeGenerator

如果想在springboot项目启动之后执行一些代码,可以通过使用ApplicationRunner或CommandLineRunner两种方式实现 https://github.com/licunzhi/dream_on_sakura_rain/tree/master/springboot_initAction_demo github项目代码(里面包含了ExitCodeGenerator的使用案
相关文章
相关标签/搜索