java如何获取 request payload 里面的数据

用Ext Proxi.api的时候 当数据修改过以后
调用store.sync()

发现发送到服务器端的数据是通过
request payload 发送的 服务器端如何获取 用的Spring3

[img]http://dl.iteye.com/upload/attachment/0083/0979/e4031d10-bb8b-39f2-a81d-91818e8b1b77.jpg[/img]

我后台如何拿到数据呢

应该无法获取,request里确实没有payload里的数据,提交时候encode一下才行

从request请求的inputstream中取就可以了
request.getInputStream();
再使用JSONObject可以获取到了

http://stackoverflow.com/questions/8066138/access-request-payload-in-spring-mvc-controller

http://stackoverflow.com/questions/8250439/can-spring-mvc-have-request-parameters-for-an-http-put-method-or-must-i-use-pos

给你参考下。我这边没有extjs4的环境,你可以试试spring的@RequestBody注解