摘要: ==需求:springBoot项目启动之后直接执行某一段代码。== #1. 方式一 实现ApplicationRunner接口,重写Run方法 @Component @Order(1) //如果有多个runner需要指定一些顺序 public class SimosApplicationRunner 阅读全文
posted @ 2021-05-20 15:06  不将就鸭 阅读(85) 评论(0) 推荐(0)