title: How to ignore "null" or empty properties in json, globally, using Spring configuration
body: <p>I'm trying to return only the properties that have values, but the null ones are also being returned.</p>
  
  <p>I know that there's an annotation that does this ( <code>@JsonInclude(Include.NON_NULL)</code> ), but then I need these in every single entity class.</p>
  
  <p>So, my question is: Is there a way to configure this globally through spring config? (avoiding XML, preferably)</p>
  
  <p>EDIT: It seems that this question has been considered a duplicate, but I don't think so. The real question here is how to configure it through spring config, which I couldn't find in other questions.</p>