intellij idea tomcat 启动报错not found for the web module

     使用intellij idea 创建tomcat项目的时候会出现该错误:

     启动tomcat的时候报错:

     not found for the web module

   unnamed not found for the web module-冯金伟博客园

    解决方法:

   1、设置正确的web.xml路径

  unnamed not found for the web module-冯金伟博客园

    2、创建war包和web包在artifacts中

  unnamed not found for the web module-冯金伟博客园

3. 

unnamed not found for the web module-冯金伟博客园

 在重新运行Tomcat的时候还会报错, 说是unnamed.war包已经失效

然后将原来的war包删除, 重新导入新建的war包, 问题解决!

  
———————
作者:kerryqpw
来源:CSDN
原文:https://blog.csdn.net/kerryqpw/article/details/70555526
版权声明:本文为博主原创文章,转载请附上博文链接!