2018年8月30日

Request method 'GET' not supported

摘要: Request method 'GET' not supported 错误原因: GET请求不被允许。 解决方法: 1.从客户端入手。假设浏览器中的js用了ajax发起异步请求GET,将GET改为POST。 2.从服务端入手。Controller层的 @RequestMapping( method 阅读全文

posted @ 2018-08-30 14:49 乐之者v 阅读(9933) 评论(0) 推荐(0)

Required String parameter ' ' is not present

摘要: Required String parameter ' ' is not present 报错原因: url中的参数错误。 解决方法: 1.修正url中的参数的值。 2.在Controller层中的@RequestParamrequired = false 也就是 @RequestParam(val 阅读全文

posted @ 2018-08-30 14:45 乐之者v 阅读(9712) 评论(0) 推荐(0)

导航