table of Contents
Does not discuss static resource filtering. . .
-
This problem redirects will not 404, because the redirect is to find the corresponding page, which is determined by the browser.
-
And forwarding in the same directory will find resources. But forwarding from the controller (root directory) to the directory below the root directory, the forwarding can pass, but the resources found on the page are still resources under the root path.
-
The solution
puts a slash / before each referenced resource to represent the resources under the project
Springboot can solve the same problem as above, but after 8080 is added,
thymeleaf will be used to take over the access path of the project!