开发者

Using both @RequestBody and normal parameters

I am using spring 3 co开发者_开发技巧ntrollers with a flex client. I am now using @RequestBody in order to pass xml's to the server. How can i pass additional parameters?

Thank you.


You can mix and match easily enough:

public String handle(@RequestBody String xml, @RequestParam String x, @RequestParam String y) {
   ...
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜