Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
“String”类型的字段未出现在序列化控制器的结果中
result.use(Results.json()).indented().from(list).serialize();
出现一些字段,而另一个字段在 null 时不出现,我想要的字段是输入“String”并实现“get”和“sets”,这总是填充
PS:我正在使用 vraptor 框架
我使用“包含”解决了:
result.use(Results.json()).indented().from(list) .include("codigoComposto").serialize();