1、在tomcat的server.xml中将端口改成80
<Connector port="80" protocol="HTTP/1.1"
maxThreads="600"
minSpareThreads="100"
maxSpareThreads="500"
acceptCount="700"
connectionTimeout="20000"
redirectPort="8443" />
2、在tomcat的server.xml中在
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
</Host>
中间加上
<Context path="" docBase="D:\Tomcat 6.0\webapps\Menu" debug="0" reloadable="true" />
我的项目都是放在D:\Tomcat 6.0\webapps下面的,项目名是Menu,所以只需要把项目的地址放在docBase中就OK了。