类 EventPublishingRunListener

    • 字段概要

      • 从接口继承的字段 org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      voidcontextLoaded​(org.springframework.context.ConfigurableApplicationContext context)
      Called once the application context has been loaded but before it has been refreshed.
      voidcontextPrepared​(org.springframework.context.ConfigurableApplicationContext context)
      Called once the ApplicationContext has been created and prepared, but before sources have been loaded.
      voidenvironmentPrepared​(org.springframework.core.env.ConfigurableEnvironment environment)
      Called once the environment has been prepared, but before the ApplicationContext has been created.
      voidfailed​(org.springframework.context.ConfigurableApplicationContext context, Throwable exception)
      Called when a failure occurs when running the application.
      intgetOrder() 
      voidrunning​(org.springframework.context.ConfigurableApplicationContext context)
      Called immediately before the run method finishes, when the application context has been refreshed and all CommandLineRunners and ApplicationRunners have been called.
      voidstarted​(org.springframework.context.ConfigurableApplicationContext context)
      The context has been refreshed and the application has started but CommandLineRunners and ApplicationRunners have not been called.
      voidstarting()
      Called immediately when the run method has first started.