1.maven中的web项目在启动时报错 xxx not found for the web module.
(报错误的图不是我的,从网上找的,我的在D盘,为了方便描述,我调好了,没来得及截图)
IDEA 的maven项目 启动tomcat报错xxx not found for the web module.
2.先找到自己的配置文件,web.xml,确认位置。
IDEA 的maven项目 启动tomcat报错xxx not found for the web module.

3.再确认artifacts中有你要发布项目的web包和war包。
IDEA 的maven项目 启动tomcat报错xxx not found for the web module.
4.一切配置没问题,就重启tomcat,再跑一遍。如果还报xxx not found for the web module.这个错误。在重新启动tomcat前,先点击这一步。
IDEA 的maven项目 启动tomcat报错xxx not found for the web module.
5.然后再点restart server,重启tomcat。
我的项目,这时候就没报错了,控制台开始打印日志文件,然后把index.jsp页面在浏览器中加载出来了。
IDEA 的maven项目 启动tomcat报错xxx not found for the web module.
6.我的四个web项目都是这么好的。
转载自https://blog.csdn.net/ZQQ1996/article/details/98044909

相关文章: