Servlet.service() for servlet [DispatcherServlet] in context with path [/TeachingAssistantSystem] threw exception [Request processing failed; nested exception is java.lang.NumberFormatException: For input string: "null"] with root cause
java.lang.NumberFormatException: For input string: "null"
前台代码:function distribution(rowIndex) {
user.datagrid('selectRow', rowIndex);
var row = user.datagrid('getSelected');
var id = row.id;
layer.open({
type : 2,
title : '作业评语',
area : [ '500px', '400px' ],
content : '${ctx}/work/remark?id='+id
});
}
后台代码:@RequestMapping("/remark")
public String remark(HttpServletRequest request, Model model){
Work work = service.findOne(Long.valueOf(request.getParameter("id")));//提示这是出错行!!
model.addAttribute("work", work);
return "work/remark";
}
数据库:
