When starting Tomcat, the error is as follows:
war exploded: Error during artifact deployment. See server log for details.
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:
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.