eclipse tomcat默认启动timeout时间太短,导致项目启动时间一长,就报错
工作空间workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<servers>
<server auto-publish-setting="2" auto-publish-time="1" configuration-id="/Servers/Tomcat v7.0 Server
at localhost-config" deployDir="wtpwebapps" hostname="localhost" id="Tomcat v7.0 Server at localhost"
name="Tomcat v7.0 Server at localhost" runtime-id="Apache Tomcat v7.0" server-
type="org.eclipse.jst.server.tomcat.70" server-type-id="org.eclipse.jst.server.tomcat.70" start-
timeout="10000" stop-timeout="10000" testEnvironment="true" timestamp="0"/> //设置
</servers>
设置好之后 restart eclipse