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 behavior configure the WebApplicationType
in your application.properties
, as shown in the following example:
-
Properties
-
YAML
spring.main.web-application-type=none
spring:
main:
web-application-type: "none"