菜单

波波
发布于 2021-11-28 / 0 阅读
0

SpringBoot启动运行特定代码,指定顺序

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

image.png

image.png