Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
实体部分:
测试代码:
结果是:
我的问题: 使用 @JSONField(jsonDirect = true) 的目的是因为我的需求是将一个 json 字符串放入 String 类型的字段里,然后再通过filter 去选择要返回的属性字段。现在 jsonDirect 和 filter 一起使用。结果如上。