Tomcat啓動時報啓動時間沒有在45秒內,解決辦法
最近啓動Tomcat時,經常出現如下錯誤:
Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds.
If the server requires more time, try increasing the timeout in the server editor.
就是因爲默認設置tomcat啓動的時間不能超過45秒,所以如果啓動超過了,就會報錯。
解決的方法很簡單就是自己手動修改tomcat的啓動時間.
解決方法如下:
找到自己的工作區間workspace–>.metadata–>.plugins–>org.eclipse.wst.server.core–>servers.xml
用記事本打開servers.xml,修改start-timeout的值,即你想要的啓動最長時間爲多少。
總結:希望這邊文章能幫助到你解決這個問題!!!