How to setting Root path with maven and jetty plugin

Опубликовано: 22 Сентябрь 2022
на канале: Programming Tutorial
72
like

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 !!!


Смотрите видео How to setting Root path with maven and jetty plugin онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Programming Tutorial 22 Сентябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 72 раз и оно понравилось like людям.