Jackson Not Overriding Getter with @JsonProperty

前端 未结 10 2089
醉话见心
醉话见心 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:30

    I was missing databind dependency

    
        com.fasterxml.jackson.core
        jackson-core
        ${fasterxml.version}
    
    

提交回复
热议问题