eclipse tomcat timeout时间设置



eclipse tomcat默认启动timeout时间太短,导致项目启动时间一长,就报错


如下设置:

工作空间\.metadata\.plugins\servers.xml文件

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?> 
  2. <servers> 
  3.   <server auto-publish-setting="2" auto-publish-time="1" configuration-id="/Servers/Tomcat v6.0 Server   
  4. at localhost-config" deployDir="wtpwebapps" hostname="localhost" id="Tomcat v6.0 Server at localhost"   
  5. name="Tomcat v6.0 Server at localhost" runtime-id="Apache Tomcat v6.0" server-  
  6. type="org.eclipse.jst.server.tomcat.60" server-type-id="org.eclipse.jst.server.tomcat.60" start-  
  7. timeout="10000" stop-timeout="10000" testEnvironment="true" timestamp="0"/>  //设置
  8. </servers> 




设置好之后 restart eclipse

posted on 2017-03-21 17:16  signheart  阅读(4891)  评论(0编辑  收藏  举报

导航