JBOSS+TOMCAT發布的WAR應用默認路徑設置問題
在deploy發布名稱為一個test.war的應用,假設端口為80
本地訪問地址為:http://localhost/test
如何在JBOSS設置通過訪問:http://localhost 訪問到test.war應用
create a file named "jboss-web.xml" in the "WEB-INF" directory of the war with content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3//EN"
"http://www.jboss.org/j2ee/dtd/jboss-web_3_0.dtd">
<jboss-web>
<context-root>/</context-root>
</jboss-web>