Question: I have a simple Spring Boot application that gets messages from a JMS queue and saves some data to a log file, but does not need a web server. Is there any way of starting Spring Boot without the web server?

Answer: 
The simplest solution. in your application.properties file. add the following property as mentioned by a previous answer:

> 
> spring.main.web-environment=false
> 
> 
> 

For version 2.0.0 of Spring boot starter, use the following property :

> 
> spring.main.web-application-type=none
> 
> 
> 

For documentation on all properties use this link : <https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html>
Remove folowing dependancy on your pom file will work for me

```
  <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-web</artifactId>
    </dependency>

```