关于Tomcat的Server at localhost was unable to start within 45 seconds错误解决方法

在Tomcat启动时有时会报次错

Server Tomcat v9.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.

这个问题可能大家都熟悉,以前碰到这个问题,重新启动一次eclipse就好了,随着我的一个项目的增大,我发现这种情况越来越多,到底是怎么回事?

出现这个情况的原因有两个,要么是你的数据库连接connection超时,要么是你的项目真的在45s之间还没启动起来,是由于项目比较大的缘故。

解决方法:

1、在server窗口双击Tomcat服务

2、在新打开的窗口中,找到“Timeouts”项,将里面的“Strat(in seconds)”的45秒调大即可。


猜你喜欢

转载自blog.csdn.net/qq_17497931/article/details/80297909
今日推荐