java - Is there a class level annotation for @JsonProperty -
is there class level annotation jackson
's @jsonproperty
? without knowing field names in class, can able annotate class annotation , map me automatically?
currently have annotate each field jsonproperty, there can @ class level servers same purpose?
public class myentity() { @jsonproperty("banner") private string banner; @jsonproperty("menu") private string menu; }
@jsonproperty not class level annotation, , don't need mark class annotation. if provide class name argument parser know how map according getter methods. if every getter method has been marked @jsonproperty without argument
Comments
Post a Comment