0

如何在@Result Annotation 中指定要转换为 JSON 的变量?

现在它将所有带有 getter 的变量转换为 JSON 字符串。

如何在@Result 中使用 params 属性?

@Action(value = "save", results = { @Result(name = "success", type = "json") })
4

1 回答 1

1

我认为这应该有效:

@Result(type = "json", params = {
            "includeProperties",
            "var1,var2"
        })
于 2017-12-20T14:40:59.033 回答