1.JBOSS7下的standalone.xml文件<virtual-server></virtual-server>节点改为以下内容    

<virtual-server name="default-host" enable-welcome-root="false">
         <alias name="localhost"/>
         <alias name="example.com"/>
</virtual-server>

2.将欲配置为根路径的程序的WEB-INF文件夹下添加jboss-web.xml文件,里面的内容如下:

<?xml version="1.0" encoding="UTF-8"?> 
<jboss-web> 
    <context-root>/</context-root> 
</jboss-web>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2021-11-18
  • 2021-07-19
  • 2021-11-02
猜你喜欢
  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2021-03-31
  • 2022-12-23
  • 2021-07-15
  • 2021-06-01
相关资源
相似解决方案