org.springframework.boot

Interface SpringApplicationRunListener

    • Method Detail

      • starting

        void starting()
        Called immediately when the run method has first started. Can be used for very early initialization.
      • environmentPrepared

        void environmentPrepared(ConfigurableEnvironment environment)
        Called once the environment has been prepared, but before the ApplicationContext has been created.
        Parameters:
        environment - the environment
      • contextLoaded

        void contextLoaded(ConfigurableApplicationContext context)
        Called once the application context has been loaded but before it has been refreshed.
        Parameters:
        context - the application context
      • failed

        void failed(ConfigurableApplicationContext context,
                    Throwable exception)
        Called when a failure occurs when running the application.
        Parameters:
        context - the application context or null if a failure occurred before the context was created
        exception - the failure
        Since:
        2.0.0