如果几个CommandLineRunner或ApplicationRunner豆类中定义必须在一个特定的顺序被调用,您还可以实现org.springframework.core.Ordered接口或使用org.springframework.core.annotation.Order注解。

image.png

image.png