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

Popular posts from this blog

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -