@GetMapping("/hello")
public String hello(Bean bean) {
return "hello";
}
@Data
public static class Bean {
private String name;
private Map<String, Object> map;
}
# 需要转义:
# curl http://localhost:8080/test/hello?name=111&map[key]=value
curl http://localhost:8080/test/hello?name=111&map%5Bkey%5D=value
传参.png










网友评论