Alternative for @RequestBody in Spring Portlet MVC

I know how to handle jQuery Ajax POST requests with @RequestBody in Spring Servlet MVC.

In combination with eg Jackson , handling of complex objects (array of objects or containing other objects) submitted in the body of a request as contentType="application/json" is quite easy.

But in Spring Portlet MVC @RequestBody is not available .

How can I implement a similar solutiuon to handle these objects in Spring Portlet MVC using Jackson to deserialize to a POJO?

I want to avoid sending the request as contentType=application/x-www-form-urlencoded , resulting in sending n query-parameters (althought this approach works in portlet context)

链接地址: http://www.djcxy.com/p/48464.html

上一篇: Ajax和Spring MVC无法获取列表到弹簧方法

下一篇: Spring Portlet MVC中的@RequestBody的替代方案