How to add @JsonIgnore annotated fields in serializing in Jackson ObectMapper

后端 未结 4 967
时光说笑
时光说笑 2021-01-28 23:15

I need to add @JsonIgnore annotated fields while serializing an object by Jackson ObjectMapper. I know you may offer me to remove the @JsonIgnore

4条回答
  •  失恋的感觉
    2021-01-29 00:08

    I would suggest removing and re-adding them programmatically via reflection when your specific mapping is happening.

提交回复
热议问题