JsonIgnoreProperties not working

后端 未结 4 1752
故里飘歌
故里飘歌 2021-01-07 17:54

I have the following simple class:

import org.codehaus.jackson.annotate.JsonIgnoreProperties;
@JsonIgnoreProperties({ \"thirdField\" })
public class Message          


        
4条回答
  •  春和景丽
    2021-01-07 18:33

    It didn't work for me any of the above answers, i found a workaround that I have reinitialized the object and values (copied the object).

提交回复
热议问题