Recently learning the Spring MVC framework. There are a lot of problems with IntelliJ idea compiler development because you don't understand the compiler configuration.
This is the main.jsp page in the picture label There is no one.jpg file in the issue.
All right... I can test the situation again but I still have a problem.
The situation was my main.jsp file under the JSP folder, the images folder and the JSP are sibling folders. Even if the path is entered ".. /images/one.jpg "is not allowed.
So I looked up a lot of blogs. Found this http://www.cnblogs.com/hhhd/p/6800325.html.
Spring MVC must be configured to support access to static resources. Idea default is the file path under Main/webapp, to be placed under the resource file of the Web-inf sibling, in the JSP
${pagecontext.request.contextpath} is added
Oh, I'm confused. I'll write again tomorrow ....
Intellij the JSP page in idea does not have access to static resources (image, JS, CSS)