How to setting Root path with maven and jetty plugin
Prerequisite
1. You have project which build using servlet
2. already familiar, how to run servlet using maven and jetty plugin
3. already familiar mapping servlet using web.xml or annotation
this tutorial describe how Change context root from
1. http://localhost:8080/
2. to this http://localhost:8080/myWebApp
Let's jump right in
1. add jetty plugin into pom.xml
2. define servlet as root path(homepage file)
open web.xml if you mapping servlet using web.xml
or open class which set as servlet context/home page(if you using annotation)
3. before add context path try to run app(context path http://localhost:8080/)
4. add contextPath in pom.xml
try to run app
Succeed, happy learning and happy sharing !!!
Watch video How to setting Root path with maven and jetty plugin online without registration, duration hours minute second in high quality. This video was added by user Programming Tutorial 22 September 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 72 once and liked it like people.