It is not possible to directly specify the parameter as Map in the Controller. You need to encapsulate a Bean to receive the data. You can watch this video: http://www.imooc.com/learn/558
Post json from the front end, and just use @RequestBody as the backend controller parameter. I agree with the answer above. Use post request and @RequestBody will automatically parse it
It is not possible to directly specify the parameter as Map in the Controller. You need to encapsulate a Bean to receive the data. You can watch this video: http://www.imooc.com/learn/558
Post json on the front end, and just use @RequestBody as the backend controller parameter
Post json from the front end, and just use @RequestBody as the backend controller parameter.
I agree with the answer above. Use post request and @RequestBody will automatically parse it