2020
10-23
10-23
SpringMVC表单提交参数400错误解决方案
SpringMVC下,提交表单报400错:descriptionTherequestsentbytheclientwassyntacticallyincorrect.根据网上的总结,可能是因为如下几个问题引起的1.参数指定问题如果Controller中定义了参数,而表单内却没有定义该字段@SuppressWarnings("deprecation")@RequestMapping("/hello.do")publicStringhello(HttpServletRequestrequest,HttpServletResponseresponse,@RequestParam(value="userName")Stringuser)...
继续阅读 >