org.springframework.boot.web.servlet.context

Class ServletWebServerInitializedEvent

  • All Implemented Interfaces:
    java.io.Serializable


    public class ServletWebServerInitializedEvent
    extends WebServerInitializedEvent
    Event to be published after the ServletWebServerApplicationContext is refreshed and the WebServer is ready. Useful for obtaining the local port of a running server.

    Normally it will have been started, but listeners are free to inspect the server and stop and start it if they want to.

    Since:
    2.0.0
    See Also:
    Serialized Form