Spring Boot automatically starts an application in web server mode if it finds the web starter module in the classpath. To disable web server configuration, set the webApplicationType to none in the application.properties file as in this example:

spring.main.web-application-type=none
FREE WildFly Application Server - JBoss - Quarkus - Drools Tutorials