之前一直懶得記錄,不過最近覺得還是記錄一下好一些。
由於項目過於龐大啟動時間比較長,而tomcat默認超時時間為45秒,很顯然對於一個龐大的項目而言是遠遠不夠的。
錯誤信息如下所示:
Server Tomcat v8.5 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.
解決辦法:
修改 workspace\.metadata\.plugins\org.eclipse.wst.server.core\servers.xml文件。
把 start-timeout="45" 改為 start-timeout="200" 或者更長 重啟eclipse就可以解決該問題(我是調到200秒就解決這個問題)。