title: Autowiring into JPA converters
body: <p>I am using a customized ObjectMapper in my spring boot app. I also use the JPA converters for several fields which are stored as JSON strings in the DB. I am not sure how to autowire my custom object mapper into my converter.</p>
  
  <pre><code>@Convert(converter=AddressConverter.class)
  private Address address;
  </code></pre>
  
  <p>And my AddressConverter is </p>
  
  <pre><code>class AddressConverter implements AttributeConverter&lt;Address, String&gt; {
  
          @Autowire
          ObjectMapper objectMapper; //How to do this?
          .....
          .....
     }
  </code></pre>
  
  <p>How to autowire <code>ObjectMapper</code> into <code>AddressConverter</code>? Is there a way to do this with Spring AOP?</p>