URL参数聚合

支持将Url中的参数与Form表单中的参数(仅当Content-Typeapplication/x-www-form-urlencoded时有效)聚合到Bean中。

eg:

请求 /test?id=1&msg=hello 中的id和message的值将绑定到pojo参数中

@GetMapping(value = "/test")
public String handle(@QueryBean Pojo Pojo) {
    return "";
}

private static class Pojo {

    private int id;

    @QueryBean.Name("msg")
    private String message;

    public int getId() {
        return id;
    }

    //getter & setter
}