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 we will see how to use Jetty instead of Tomcat in Spring Boot application. Configurations Generally we need to exclude the…
ContinueTag: Jetty
Using Jetty Server with Junit test
In this post I will show you how to use Jetty server with Junit test case and how to deploy web application using Java program in Junit test. If you already have an idea on how to create a maven project in Eclipse will be great otherwise I will tell you here how to create a maven project in Eclipse.
ContinueDeploy 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