IDEA tomcat 项目运行时,Artifacts:Error during artifact deployment问题解决

终于解决,有效方法如下:

1、加载spring相关jar包到dependencies下,这一步非常重要:
IDEA tomcat 项目运行时,Artifacts:Error during artifact deployment问题解决_第1张图片
2、第二列清空,然后点击绿色加号,选择web application:exploded,然后from modules,然后出现项目名称,点击即可。以下为例子:IDEA tomcat 项目运行时,Artifacts:Error during artifact deployment问题解决_第2张图片
3、选择右上角tomcat处的Edit Configurations,默认没有的情况点击加号会出现。注意,下方的build处也要选择,点击绿色加号,选择artifacts对应的一栏,勾选exploded项即可。IDEA tomcat 项目运行时,Artifacts:Error during artifact deployment问题解决_第3张图片
配置成功后信息如下在这里插入图片描述

你可能感兴趣的:(java)