开发者

Using both @RequestBody and normal parameters

开发者 https://www.devze.com 2023-01-17 10:22 出处:网络
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.

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

精彩评论

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