title: Java Jackson Always Serialize One Type As Another
body: <p>Is there a way to tell Jackson to always serialize one type to another. In my case I would like to always serialize Long to String. Right now whenever there is an object with a Long property we have to annotate it with <code>@JsonSerialize(using=ToStringSerializer.class)</code>. This is tedious and easy to forget. </p>
  
  <p>I would like to be able to configure the Jackson object mapper to always convert Long to String in the spring boot bean creation.</p>