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

后端 未结 3 559
轮回少年
轮回少年 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:49

    Can't you just rename your war file to mywebapp (via Maven or else) so that Tomcat will deploy it under /mywebapp ?

提交回复
热议问题