How to change context root of a dynamic web project in Eclipse?

后端 未结 13 2645
一整个雨季
一整个雨季 2020-11-22 12:59

I developed a dynamic web project in Eclipse. I can access the app through my browser using the following URL:

http://localhost:8080/MyDynamicWebApp
         


        
13条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-22 13:27

    Apache tomcat keeps the project context path in server.xml path. For each web project on Eclipse, there is tag from there you can change it.
    Suppose, there are two or three project deployed on server. For each one context path is stored in . This tag is located on server.xml file within Server created on eclipse.

    I have one project for there on context root path in server is:

    
    

    This path represents context path of your web application. By changing this path, your web app context path will change.

提交回复
热议问题