天天看點

JBOSS AS 7設定虛拟目錄位置

修改standalone.xml檔案的

        <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">

            <deployment-scanner path="deployments" relative-to="jboss.server.base.dir" scan-interval="5000"/>

            <deployment-scanner name="shgs" path="d:/pqc/deployments" scan-enabled="true" scan-interval="5000" auto-deploy-zipped="false" auto-deploy-exploded="false" deployment-timeout="60"/>

        </subsystem>

紅色部門就是新增的虛拟目錄新位置。

還要把新的虛拟目錄位置放置一個目錄shgs.war和一個檔案shgs.war.deployed

shgs.war裡面放置你的應用,測試可以是一個test.txt

shgs.war.deployed是一個空檔案,你就可以通路http://localhost:8080/shgs/test.txt了