◉◡◉ 您好,欢迎到访伊成个人站!

CommandLineRunner

spring boot中的ApplicationRunner和CommandLineRunner

spring boot中的ApplicationRunner和CommandLineRunner

导言在某些场景中,可能会需要到项目启动完成之后就需要初始化数据,读取配置文件,数据库信息等等业务需求。在spring boot中已经给我们提供了对应的接口,这两个接口是CommandLineRunner和ApplicationRunn...