Example usage for org.springframework.boot.web.server WebServer stop

List of usage examples for org.springframework.boot.web.server WebServer stop

Introduction

In this page you can find the example usage for org.springframework.boot.web.server WebServer stop.

Prototype

void stop() throws WebServerException;

Source Link

Document

Stops the web server.

Usage

From source file:org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.java

private void stopAndReleaseWebServer() {
    WebServer webServer = this.webServer;
    if (webServer != null) {
        try {/*  w w w  .j  a va2  s .  co m*/
            webServer.stop();
            this.webServer = null;
        } catch (Exception ex) {
            throw new IllegalStateException(ex);
        }
    }
}