I'm using @PathVariable to obtain some placeholder from the uri this is the function from my controller
@RequestMapping(value = "/mail_detail/{id}", method = RequestMethod.GET)
public String showCourrierDetail(@PathVariable("id") String id) {
//System.out.println("id="+id);
return "mail_detail";
}
It redirects me to jsp page named mail_detail My problem is that when I add the path variable, the jsp page don't read the css files although when I use
@RequestMapping(value = "/mail_detail", method = RequestMethod.GET)
public
String showmail() {
return "mail_detail";
}
It works and reads all the css files
<link>in your HTML looks like ?<link href="resources/css/bootstrap.min.css" rel="stylesheet">/beforeresourcesand check? It should look like -<link href="/resources/css/bootstrap.min.css" rel="stylesheet">