Server Tomcat v8.5 Server at localhost was unable to start within 45Server Tomcat v8.5 Server at localhost was unable to start within 45路飞博客

Server Tomcat v8.5 Server at localhost was unable to start within 45

最近在学习Spring mvc,写完代码启动项目的时候,Tomcat一直在报错,启动不了。

报错提示: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.

报错截图:

出现这种情况,可能的问题有:

1、项目代码有错误,配置错误等;

2、项目启动的确实比较慢,要加载的包比较多,加上电脑配置不高的话,就需要更长的时间;

经过检查代码并没有发现问题,猜测是项目启动需要时间很长,因为导入的spring mvc相关的包就有8个了,所以就去修改了一下Tomcat启动限制时间。修改方式如下:

①双击Tomcat

②选择Timeouts,把start时间改为更大,我这里300秒,然后按Ctrl+S保存,然后再启动项目。

③项目正常启动,发现控制台输出的信息可以看出,Tomcat启动的时间用了47秒,怪不得限制45秒就启动不了。

转载请注明:路飞博客 » Server Tomcat v8.5 Server at localhost was unable to start within 45