在Eclipse中配置tomcat

1:下载tomcat插件
http://blog.csdn.net/njchenyi/article/details/6042760

2:修改以tomcat热加载启动server.xml

<Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

 

     <Context path="/你的项目名" docBase="E:/workspaces/eclipseJEE/xx/WebRoot" crossContext="true"  reloadable="true"   debug="1"></Context>

 

</Host>


3:如果发现你的项目的class不叫webRoot,需要修改
http://zhidao.baidu.com/question/362668932.html

猜你喜欢

转载自yr512656630.iteye.com/blog/1767019