Jackson Not Overriding Getter with @JsonProperty

前端 未结 10 2243
醉话见心
醉话见心 2021-02-12 06:23

JsonProperty isn\'t overriding the default name jackson gets from the getter. If I serialize the class below with ObjectMapper and jackson I get

<
10条回答
  •  青春惊慌失措
    2021-02-12 06:45

    Camel cases still seem to have issues even after defining proper annotations. Example:

    @JsonProperty("mirrorport") private String mirrorPort;

    Deserialization still fails when xml has YES

提交回复
热议问题