天天看点

idea创建springMVC时候tomcat的部署

一开始按照一个教程进行了设置,结果运行的时候回报错:

[RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file 09-Jul-2018 10:01:07.808 严重 [RMI TCP Connection(3)-127.0.0.1

看了很多博客才发现是project structure没有设置。

1.点击file-》点击project structure

idea创建springMVC时候tomcat的部署

然后点击ok,在运行就没有问题了,至于为什么这样,还不是太清楚,不过这样做了之后,在out文件夹下面会添加了lib文件夹,lib文件夹李加载了jar包,有可能运行的时候需要依赖这些jar包,这个还有待深入了解。

继续阅读