Dynamic addition of fasterxml Annotation?

前端 未结 2 775
闹比i
闹比i 2021-01-24 04:20

Is there a way to set @JsonProperty annotation dynamically like:

class A {

    @JsonProperty(\"newB\") //adding this dynamically
    private String b;

}
         


        
2条回答
提交回复
热议问题