_小北
2019-02-22 13:04
如标题,这种可以返回
但如果是get请求,传字符串参数,
返回值:
{
"code": -1,
"msg": "An Errors/BindingResult argument is expected to be declared immediately after the model attribute, the @RequestBody or the @RequestPart arguments to which they apply: public com.example.demo.model.CommonMsg com.example.demo.controller.UservisitorController.SelectAll(org.springframework.validation.BindingResult)",
"data": null
}
get 请求怎么会有表单验证呢?只有 Post 请求才会提交数据,有验证的需求吧。
Spring Boot进阶之Web进阶
104054 学习 · 393 问题
相似问题