How can I specify “Context path” on Tomcat 8 inside META-INF/context.xml in java war file?

后端 未结 3 553
轮回少年
轮回少年 2021-01-03 00:14

How can I deploy mywebapp-1.0.0.war to $TOMCAT_HOME/webapps directory with context path /mywebapp using context.xml inside the war file on

3条回答
  •  甜味超标
    2021-01-03 00:45

    Thanks for your research j2gl! I've found out that good way how to achieve both .war file with full name with version and deployed short path is to use Tomcat manager API. For example through Tomcat7-maven-plugin.

提交回复
热议问题