spring mvc requestparam 传参报错怎么解决

2024-12-21 23:04:23
推荐回答(1个)
回答1:

@RequestMapping("/chgSort") public void chgSort(HttpServletRequest request, Model model) { Long id= Long.valueOf(request.getParameter("id"));你试下这个