https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/CommandLineRunner.html
- org.springframework.boot.CommandLineRunner指出当一个bean包含在SpringApplication的时候,该bean应该运行。在同一个应用上下文中,可以定义多个CommandLineRunner,这些CommandLineRunner可以通过Ordered接口或 @Order来排序。
- 如果你需要访问ApplicationArguments,而不是原始的字符串数组,那么可以考虑使用ApplicationRunner。