请求参数聚合
支持将请求的参数聚合到Bean中
eg.
@GetMapping(value = "/test")
public String foo(@RequestBean Pojo Pojo) {
return "";
}
private static class Pojo {
@QueryParam("id")
private int id;
@HeaderParam("message")
private String message;
private AsyncRequest request;
private AsyncResponse response;
public int getId() {
return id;
}
//getter & setter
}
Note
由于SpringMVC
的注解大多不支持在Field
上使用, 因此仅支持JAX-RS
注解以及自定义参数解析等场景。
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified March 10, 2022: introduce docsy as the website framework and add docs-v1.0.0 (#120) (79630ff)