Skip to main content

Parse strategy


Parse strategy

Data mapping

Learn more

How to ignore the field

Way 1: Use one of the following 2 annotations.

com.fasterxml.jackson.annotation.JsonIgnore

com.alibaba.fastjson.annotation.JSONField(serialize = false)

Way 2: Add the static modifier to the field.

Way 3: Add @fastRequestParseIgnore in comment

/**
 * xxx description
 * @fastRequestParseIgnore
 */
private String someIgnoreField;

Way 4: Ignore field name ignoreFiled

Only need to add field names in the configuration to ignore target fields in the entity class.

Last update: