Skip to content
Advertisement

Spring Boot Application Shutting Down as soon as it’s started

I used Spring Initializr to initialize a new project. I further added MySQL Driver, Spring Data JPA, Spring Boot Actuator, and Spring Web as project dependencies. Exporting the .zip file, the only thing I did is, changed the application.properties file. When I run the application, it starts and stops immediately. Here’s the response:

JavaScript

and my application.properties file:

JavaScript

My pom.xml file is as follows:

JavaScript

Advertisement

Answer

If you used Spring Initializr to set up your project, you might probably have

JavaScript

as a parent dependency or a similar version of spring-boot-starter-parent which is not yet released on maven central. So I suggest you go to maven central and import the latest release, for me it was:

JavaScript

And this fixed my problem.

Advertisement