SpringMVC: war exploded: Error during artifact deployment. See server log for details.

created at 03-20-2022 views: 12

problem

When starting Tomcat, the error is as follows:

war exploded: Error during artifact deployment. See server log for details.

solution

Step 1: I saw someone on the Internet saying that under WEB-INF, there should be an applicationContext.xml file. Even if there is not, the context should be specified in web.xml, so in web.xml Add the following code:

add code

Step 2: Be sure to write the bean in applicationContext.xml. (This is my own careless mistake, just to remind everyone)

anyhow

This error has troubled me for a long time. I have checked many methods on the Internet but they are not applicable. Therefore, this article is only used to help you troubleshoot, and you have to judge according to your actual program.

created at:03-20-2022
edited at: 03-20-2022: