可以配置虚拟目录,方法如下:在%catalina_home%\conf\server.xml文件中设置context元素 docBase= reloadable="true"/>
把它放到Root里面不就行了。。