当我输入:http://localhost:8080/sys_manager/admin/sys/resource/update/1009 可以进入这个方法,但是id值为null,:
@RequestMapping(value = "update/{id}", method = RequestMethod.GET)
public String showUpdateForm(@PathVariable("id") ID id, Model model) {
M m = baseService.findOne(id);
if (permissionList != null) {
this.permissionList.assertHasUpdatePermission();
}
setCommonData(model);
model.addAttribute(Constants.OP_NAME, "修改");
model.addAttribute("m", m);
return viewName("editForm");
}
一图千字,截图如下:https: //plus.google.com/photos/109577783306525329699/albums/6135767537581420673