JsonSerialize.include()
(with values ALWAYS
or NON_NULL
)@Target(value={TYPE,METHOD,FIELD}) @Retention(value=RUNTIME) @Deprecated public @interface JsonWriteNullProperties
Annotation can be used with Classes (all instances of given class) and Methods.
Default value for this property is 'true', meaning that null properties are written.
限定符和类型 | 可选元素和说明 |
---|---|
boolean |
value
已过时。
Whether properties for beans of annotated type will always be
written (true), or only if not null (false).
|