@Override public void stop(ServerInstance<HttpServer> serverInstance) { if (serverInstance != null) { serverInstance.command((httpServer, baseURI) -> { httpServer.shutdown(); }); } }
@Override public void stop(ServerInstance<EmbeddedServletContainer> serverInstance) { if (serverInstance != null) { serverInstance.command((container, baseURI) -> { LoggingUtil.INSTANCE.debug("Stopping Spring Boot server"); container.stop(); }); } }