tomcat 部署虚拟目录

          tomcat 部署虚拟目录

在tomcat的目录下:Tomcat 6.0\conf\Catalina\localhost
增加工程的xml文件:例如test.xml  
test.xml里面的 内容就是
<!--

    Context configuration file for the Tomcat Manager Web App

    $Id: manager.xml,v 1.3 2004/08/26 17:03:34 remm Exp $

-->


<Context path="/test"
docBase="D:\java\MyEclipse\workspace\test\test1"
         privileged="true" antiResourceLocking="false" antiJARLocking="false">
</Context>
其中test为工程名字  test1为放置jsp的目录名
启动tomcat就ok  也可以直接通过myeclipse启动(不要去部署)

猜你喜欢

转载自kinglun.iteye.com/blog/1622764