【java】model.addAttribute("method", "update");

@RequestMapping(method = RequestMethod.GET, value = "/update/{id}")
public String forUpdate(Model model, @PathVariable("id") Long id) {
SystemRole systemRole = systemRoleService.getById(id);
model.addAttribute("systemRole", systemRole);
model.addAttribute("method", "update");
return "role/role_edit";
}
posted @ 2017-08-19 16:28  Legolas_4  阅读(548)  评论(0编辑  收藏  举报