Add a note to explain how to disable the web server

See gh-12853
This commit is contained in:
Stephane Nicoll 2018-04-13 15:18:08 +02:00
parent 7550f92ea5
commit 31441a7590
1 changed files with 13 additions and 0 deletions

View File

@ -569,6 +569,19 @@ server.
[[howto-use-another-web-server]]
=== Disabling the Web Server
If your classpath contains the necessary bits to start a web server, Spring Boot will
automatically start it. To disable this behaviour configure the `WebApplicationType` in
your `application.properties`, as shown in the following example:
[source,properties,indent=0]
----
spring.main.web-application-type=none
----
[[howto-configure-jetty]]
=== Configure Jetty
Generally, you can follow the advice from