更新时间:2022-04-15 03:00:59
这不是完美的,但这是我能想出来的最优雅的方式。
This ain't perfect but it's the most elegant way I could figure out.
@JsonProperty("foo") public void setFoo(Map<String, Object> foo) { bar = (Integer) foo.get("bar"); }
将JSON子对象属性绑定到Jackson中的Java对象字段中