Home > Back-end >  Spring Boot Easyui datagrid, error 415, application/x - WWW - form - urlencodednot supported
Spring Boot Easyui datagrid, error 415, application/x - WWW - form - urlencodednot supported

Time:11-28

QueryParams Spring Boot + Easyui + datagrid, set parameters, but the error 415, the Content type 'application/x - WWW - form - urlencoded; Charset=utf-8 'not supported

@ PostMapping (" queryDynamic ")
@ ResponseBody
Public String queryDynamic (@ RequestBody (required=false) Map ReqMap)
{}

Map is always unable to get to the parameters, consult!

CodePudding user response:

How do you submit the post processing? The form - the data?

Try to remove the @ ResponseBody

CodePudding user response:

The post is not a json format,

CodePudding user response:

@ RequestBody corresponding contentType="application/json", your Content type set of application/x - WWW - form - urlencoded, remove the @ RequestBody can
  • Related