CommandLineRunner与ApplicationRunner的使用及源码解析

前言:java     咱们在使用SpringBoot搭建项目的时候,若是但愿在项目启动完成以前,可以初始化一些操做,针对这种需求,能够考虑实现以下两个接口(任一个均可以)spring org.springframework.boot.CommandLineRunner org.springframework.boot.ApplicationRunner 1.CommandLineRunner接口
相关文章
相关标签/搜索