AWS Lambda json deserialization with jackson annotations

后端 未结 5 1687
生来不讨喜
生来不讨喜 2021-01-07 22:43

I\'m calling an aws lambda with a json body. So the fields of the json are with different name from the ones in the POJO. So what I did is to add @JsonProperty on the fields

5条回答
  •  暖寄归人
    2021-01-07 23:23

    create getter methods for the properties and put @JsonProperty on the getter methods.

提交回复
热议问题