Define contextroot inside WAR file

后端 未结 1 1996
时光说笑
时光说笑 2020-12-16 19:21

I have an automated deployment script to deploy multiple WAR files in WAS 7. So, I would like to define contextroot inside the W

相关标签:
1条回答
  • 2020-12-16 20:10

    Create WEB-INF/ibm-web-ext.xml with these contents:

    <web-ext
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://websphere.ibm.com/xml/ns/javaee"
      xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-ext_1_0.xsd"
      version="1.0"
    >
      <context-root uri="/TestProject"/>
    </web-ext>
    
    0 讨论(0)
提交回复
热议问题