文章

Spring Boot 项目启动成功后执行特定代码的两种实现方式

springboot项目启动成功后执行特定代码的两种实现方式

法一:

实现ApplicationRunner接口

方法二:

实现CommandLineRunner接口

本文由作者按照 CC BY 4.0 进行授权