Spring Boot has Embedded Application server i.e. Tomcat , Undertow , Jetty servers No Need to setup external tomcat setup , add tomcat as JAR file.
Make POM.xml file as per your server Need , I attached pom.xml file for all 3 server jetty , tomcat , undertow.
How to Run Sample Servlet
-
Replace localhost with your IP Address in /src/main/resources/application.properties file.
-
Install Maven Package in linux server using yum.
yum install -y maven
- Run the Maven Goal.
mvn clean spring-boot:run
- Application URL :- http://localhost:8085/myServlet?name=Spring-boot-demo