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

后端 未结 13 2667
一整个雨季
一整个雨季 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:22

    If using eclipse to deploy your application . We can use this maven plugin

    
        org.apache.maven.plugins
        maven-eclipse-plugin
        2.10
        
            2.0
            newContextroot
        
    
    

    now go to your project root folder and open cmd prompt at that location type this command :

    mvn eclipse:eclipse -Dwtpversion=2.0

    You may need to restart eclipse , or in server view delete server and create agian to see affect. I wonder this exercise make sense in real life but works.

提交回复
热议问题