How to set context path to root(“/”) in Tomcat 7.0 when using Maven

前端 未结 2 2147
春和景丽
春和景丽 2021-02-07 08:15

I hava a maven project, pom.xml contains tomcat plugin.


 org.apache.tomcat.maven
 tomcat7-maven-p         


        
2条回答
  •  耶瑟儿~
    2021-02-07 09:09

    I am using tomee and it works for me.

    Add the context tag to the pom file as follows:-

    
     org.apache.tomcat.maven
     tomcat7-maven-plugin
     2.2
     
       ..
       ROOT
       ..
     
    
    

提交回复
热议问题