通常情况下,如果我们部署的应用目录为…/server/default/deploy/test.war/,则我们应用部署完后,我们访问的路径类似于:http://localhost:8080/test/index.html,如果我们想去掉test这个APP Name,则如下设置即可。
在你需要设为默认应用的那个war目录,如上述test.war/WEB-INF/ 下新建一个文件,文件名为jboss-web.xml,内容如下:
<jboss-web>
<context-root>/</context-root>
</jboss-web>
 
重启服务后,以http://localhost:8080/index.html即可访问部署于test.war/下的应用。

 

另:必需先删除…/server/default/deploy/jbossweb-tomcat55.sar/ROOT.WAR

相关文章:

  • 2022-02-06
  • 2021-12-30
  • 2022-01-20
  • 2021-12-04
  • 2022-12-23
  • 2021-12-19
  • 2021-06-15
  • 2021-05-14
猜你喜欢
  • 2022-02-16
  • 2022-01-14
  • 2021-12-25
  • 2021-11-20
  • 2021-07-09
  • 2021-05-10
相关资源
相似解决方案