【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";
}