SpringBoot启动后运行代码的几种方法
目录Spring Boot启动后运行代码的方法实现步骤1. 使用ApplicationReadyEvent2. 实现ApplicationListener<ApplicationReadyEvent>接口3. 使用CommandLineRunner或ApplicationRunner4. 使用@PostConstruct注解5.
0
0
0
精彩评论