码迷,mamicode.com
首页 > 其他好文 > 详细

model.addAttribute("method", "update");

时间:2017-08-19 18:39:56      阅读:179      评论:0      收藏:0      [点我收藏+]

标签:mod   model   pre   public   roles   edit   long   path   ice   

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

model.addAttribute("method", "update");

标签:mod   model   pre   public   roles   edit   long   path   ice   

原文地址:http://www.cnblogs.com/CESC4/p/7397031.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!