Use Jetty instead of Tomcat in Spring Boot application

Introduction Spring Boot web starter uses Tomcat as the default embedded servlet container or Tomcat is the default embedded server. So you don’t need to add any separate dependency for this Tomcat server. The Tomcat server is shipped with the spring boot starter web dependency. Now let’s say your requirement is to not use the default server Tomcat but you would like to use Jetty. Therefore in this example you will see how to use Jetty instead of Tomcat in Spring Boot application. Configurations Generally you need to exclude the…

Continue

Deploy Web Application in Jetty Container in Embedded Mode

What is this tutorial all about ? This tutorial is all about to deploy an web application in embedded Jetty web container. You do not need to deploy it manually into the web server. Why do we need to deploy it in embedded mode ? We sometimes need to deploy it in embedded mode, because during unit testing or integration testing we have to deploy the web application manually every time before we start the testing; so we want to deploy the application into embedded mode so that it starts…

Continue