Spring Boot Application immediately shuts down after starting Spring Boot Application immediately shuts down after starting windows windows

Spring Boot Application immediately shuts down after starting


Add this dependency:

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


Problem is solved - thanks for your help crazycoder. The issue was caused by an older version of tomcat. After upating the embedded tomcat of Spring to 1.5.3_RELEASE and updating mysql-jdbc-driver as well , it finally worked for me.I adjusted the pom.xml like this:

<parent>    <groupId>org.springframework.boot</groupId>    <artifactId>spring-boot-starter-parent</artifactId>    <version>2.0.0.RELEASE</version></parent>


For me what caused this was that I had this property below, in the application properties (carried over by mistake from a test application.properties file). See if any of your property files that are included have this like below, and remove it:

# disables the servlet-container initialization (for unit testing only)spring.main.web-application-type=none