What should I do if I cannot display the 404 error when I introduce the img label of the js file in jsp ?, Js404
Today, I encountered a problem. I started a web project and put an img tag on a jsp page. However, the image cannot be displayed, and the Error 404 is reported all the time. I swear to God that the path is absolutely correct. After a long time, finally find out the problem, in the sping-mvc.xml configuration file less write a line of code. "" Lines of code are missing. With spring, the default Servlet is used to respond to static files. (when the DefaultServletHttpRequestHandler is started in the container, the default servlet Name List of mainstream web containers is used to automatically find the default servlet of the container. Otherwise, the system will not respond to static files and will always report 404. I hope it will help you!