I am going through the Spring Boot Getting Started Tutorial and trying to follow the steps in Eclipse (and not STS). I made it to the end and was thrown off a little by how to “start” it up.
I wanted to create a Tomcat Server within Eclipse for the project and start. However the tutorial does not mention that step, instead saying to run the Maven command:
I was initially confused as I was wanting to start my Tomcat server within Eclipse, perhaps with some additional start up parameters. NO!
Instead do the following steps:
- In your Project Explorer view, right click and select Run As -> Maven build…
- On the Edit Configurations dialog, in the “Goals” field enter: mvn spring-boot:run
- Finally, click Run
That Maven goal will actually start up an embedded Tomcat server (behind the scenes). It will not use any Tomcat server you have have created in the Eclipse Servers view.
In the end, the tutorial steps are correct, it was just me not following the steps.