摘要: 在项目启动的时候需要做一些初始化的操作,比如初始化线程池,提前加载好加密证书等。可以通过实现Runner接口完成以上工作。 两者只是参数上的区别 方式一 实现 CommandLineRunner 接口 @Component public class VipSoftServerRunner imple 阅读全文
posted @ 2022-07-04 15:40 VipSoft 阅读(87) 评论(0) 推荐(0)