idea 解决报错 Artifact web:war exploded: Error during artifact deployment. See server log for details

问题描述:在用tomcat启动服务器时,控制台报如下错误 Artifact web:war exploded: Error during artifact deployment. See server log for details.

错误原因:查了大半天,关于这个问题的博客,试了各种千奇百怪的方法,一直没有决解。直到检查代码时发现是,在使用注解访问servlet时前面忘记加“/”   @WebServlet("JqueryAjax.do"),代码如图:

idea 解决报错 Artifact web:war exploded: Error during artifact deployment. See server log for details_第1张图片 

解决方法:检查@WebServlet注解是否有重名或者写错现象。在使用注解访问servlet时@WebServlet("/userListServlet"),虚拟目录前一定记得加上斜杠 " / " 。 

你可能感兴趣的:(JAVA项目bug总结,intellij-idea,java,ide)