类 ApplicationRunner

java.lang.Object
net.sohelp.boot.demo.core.runner.ApplicationRunner
所有已实现的接口:
org.springframework.boot.CommandLineRunner

@Component public class ApplicationRunner extends Object implements org.springframework.boot.CommandLineRunner
应用启动运行器 在Spring Boot应用启动完成后执行初始化操作
从以下版本开始:
2024/10/21 10:26
作者:
AaronFung
  • 构造器详细资料

    • ApplicationRunner

      public ApplicationRunner()
  • 方法详细资料

    • run

      public void run(String... args) throws Exception
      应用启动后执行的初始化方法 负责加载系统参数和初始化相关配置
      指定者:
      run 在接口中 org.springframework.boot.CommandLineRunner
      参数:
      args - 启动参数数组
      抛出:
      Exception - 初始化过程中可能抛出的异常