eclipse中运行多个tomcat配置方法:
修改project explorer中点开Server目录选中需要修改的tomcat中server.xml文件:
<Server port="8005" shutdown="SHUTDOWN">把端口改为没有是使用的端口,如8008。
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> 把端口改为没有是使用的端口,如9000。
<Connector port="8090" protocol="AJP/1.3" redirectPort="8443" /> 把端口改为没有是使用的端口,如8092。
这样就可以把不同项目在一个eclipse中启动起来。