摘要: SpringBooot中的CommandLineRunner接口会在所有Spring Beans初始化之后,SpringApplication.run()之前执行。 1.添加pom引用 2.添加两个CommandLineRunner 3.启动项目 4.运行结果 阅读全文
posted @ 2019-06-11 09:53 liuxm-刘小明 阅读(5272) 评论(0) 推荐(0) 编辑