1.打开C:\Tomcat\conf\server.Xml,在<host></host>之间加入代码:
<Host name="localhost" appBase="F:/tomacat"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
2,复制root目录。放入F:/tomacat下,就可以直接访问root里面的项目。
<Host name="localhost" appBase="F:/tomacat"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
2,复制root目录。放入F:/tomacat下,就可以直接访问root里面的项目。