SpringBoot app with Tomcat as Servlet Container

Said Olano - Oct 27 '23 - - Dev Community

1.- Go to https://start.spring.io/ and create a simple spring boot app as the picture shows:

Image description

2.- Then click on Generate button.

Image description

3.- Download the app.

Image description

4.- Open it up with you IDE.
5.- Open the pom.xml to load the entire project:

Image description

6.- Open as Project:

Image description

7.- Click on Trust project:

Image description

8.- Show the pom.xml:

Image description

9.- Execute maven plugin to run the spring boot app:

Image description

10.- You will see this:

Image description

11.- To run Tomcat as Servlet Container add this dependency:

Image description

12.- Here is the tomcat output:

Image description

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .