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
Found the article helpful? if so please follow us on Socials