摘要: 1.实现ApplicationRunner和CommandLineRunner接口(建议) 当springboot的main方法快要执行结束时会调用afterRefresh然后再调用callRunners来加载所有的实现ApplicationRunner和CommandLineRunner的类然后执 阅读全文
posted @ 2019-10-18 18:02 olzoooo 阅读(4298) 评论(0) 推荐(0) 编辑