springmvc pojo参数绑定不上

J2EE 码拜 8年前 (2016-02-01) 1107次浏览
 @RequestMapping(value=”/editItemsSubmit”,method={RequestMethod.GET,RequestMethod.POST})
public String editItemsSubmit(HttpServletRequest request,Integer id,ItemsCustom itemsCustom)throws Exception{
  itemsService.updateItems(id, itemsCustom);
return “forward:queryItems.action”;
}
debug时看itemsCustom中的全部属性值都为空
解决方案:20分
看你的页面怎么传值的?

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明springmvc pojo参数绑定不上
喜欢 (0)
[1034331897@qq.com]
分享 (0)