不将参数定义为函数变量,而是使用HttpServletRequest 接收参数,
@RequestMapping("/testrequest")public String testrequest(HttpServletRequest httprq){ String a = httprq.getParameter("a"); String b = httprq.getParameter("b"); return a+b;}
posted on 2019-08-13 15:52 3SU 阅读(303) 评论(0) 编辑 收藏 举报