[英]@JsonView how to use with @RequestBody
I want to add JsonView functionality to control input of my application. 我想添加JsonView功能来控制我的应用程序的输入。 And I find that I can use this annotation with RequestBody in Spring 4.1.0.RELEASE but get error this annotation not allowed here 我发现我可以在Spring 4.1.0.RELEASE中使用RequestBody的这个注释但是这里得到错误这个注释不允许
public ResponseEntity<User> update(@RequestHeader(value="Access-key") String accessKey,
@RequestHeader(value="Secret-key") String secretKey,
@JsonView(View.Summary.class) @RequestBody User user) throws Exception{
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.