Spring Boot + Spring MVC. CSS, CDN, , CSS static/css HTML.
:
<link th:href="@{/webjars/bootstrap/3.3.7/css/bootstrap.min.css}"
href="http://cdn.jsdelivr.net/webjars/bootstrap/3.3.7/css/bootstrap.min.css"
rel="stylesheet" media="screen" />
<link rel="stylesheet" th:href="@{/css/login/style.css}" href="/css/login/style.css" />
, Chrome Dev, , style.css, , HTML-.
, HTML , , @RequestMapping. @RequestMapping(name="...") @RequestMapping(path="...").
@RequestMapping(name = "/product/add", method = RequestMethod.GET)
public String add(Model model) {
model.addAttribute("product", new Product());
return "product/edit";
}
@RequestMapping(path = "/product/add", method = RequestMethod.GET)
public String add(Model model) {
model.addAttribute("product", new Product());
return "product/edit";
}
name path .
, .
, , .