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

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -