mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Expose webServer from ReactiveWebServerApplicationContext
Closes gh-9746
This commit is contained in:
parent
96cb948461
commit
b7c37c2807
@ -89,6 +89,15 @@ public class ReactiveWebServerApplicationContext
|
||||
initPropertySources();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the {@link WebServer} that was created by the context or {@code null} if
|
||||
* the server has not yet been created.
|
||||
* @return the web server
|
||||
*/
|
||||
public WebServer getWebServer() {
|
||||
return this.webServer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the {@link ReactiveWebServerFactory} that should be used to create the
|
||||
* reactive web server. By default this method searches for a suitable bean in the
|
||||
|
Loading…
Reference in New Issue
Block a user