Error in SSM Could not open ServletContext resource [/WEB-INF/dispatcherServlet-servlet.xml]

Error message description:

org.springframework.beans.factory.BeanDefinitionStoreException:
IOException parsing XML document from ServletContext resource [/WEB-INF/dispatcherServlet-servlet.xml];
nested exception is java.io.FileNotFoundException:
Could not open ServletContext resource [/WEB-INF/dispatcherServlet-servlet.xml]

problem solved:

It can be seen from the error message printed in the log that the error appears in the configuration file---[dispatcherServlet-servlet.xml], and this configuration file cannot be opened. The problem is located in this configuration file. After investigation, it was found that the name of the configuration file was incorrect and there was no .xml file type. So when scanning this configuration file, it will not find this file and cannot be opened.

Guess you like

Origin blog.csdn.net/LZ15932161597/article/details/108097036