摘要: 在使用Spring Boot开发的工作中,我们经常会需要遇到一种功能需求,比如在服务启动时候,去加载一些配置,去请求一下其他服务的接口。Spring Boot给我们提供了三种常用的实现方法: 第一种是实现CommandLineRunner接口, 第二种是实现ApplicationRunner接口 第 阅读全文
posted @ 2021-03-15 22:39 秦胜飞 阅读(608) 评论(0) 推荐(0) 编辑