A: Preface
This path problem has always been a problem, I have more than one time to study a thing, but every time about the path of the problem, is a question, now in the sub-situation to say
II: Content
(1): Picture path problem in CSS
CSS inside the picture path, is the CSS is located in the directory as the starting point to see the following eag:
(2): JSP page inside the introduction of JS is a URL as the starting point, where the URL is the URL on the site
@RequestMapping (value= "/user/add", method=requestmethod.get) public String Toadd () {return "/user/adduser";}
Jump to the page in this way, then the relative path is relative Http://localhost:8080/test/user/add (address bar) to jump, look at the Google path
Look at the path here to know how to introduce CSS files and JS files, in fact, the path introduced here is relative to the address bar to jump
Three: summary
In fact, this is my second record about the path of the blog, but each time is not very deep to understand, this is OK, relative path or need experience OH. Quick holiday, after the year is my SpongeBob, try to refuel, GO!!!
JSP page Path problem