SpringBoot - ApplicationRunner的作用是什么? 有时针对一些特殊的业务场景,需要在系统启动时执行某些任务,如:配置文件的加载、数据库的初始化等等操作。SpringBoot 提供了两种解决方案:一种是使用CommandLineRunner,另一种是使用 ApplicationRunner。......... SpringBoot 2024-01-01 39 点赞 0 评论 59 浏览