Bootstrapping a web server using spring boot is simple, all we have to do is have the spring-boot-starter-web dependency in the classpath.

When the jar present in class path, and when the application it automatically configures and starts a Tomcat server that is embedded inside this jar.

Contents

As you see in above example, Tomcat server started with default port number 8080, if you want to change the port number, you can suply server.port property in different ways.