title: Application failed to start with @Async annotation
body: <p>I am trying to run a function in background asynchronously. For this I am trying Spring's @Async annotation but my application is unable to start after putting this annotation on the function.</p>
  
  <p>I tried </p>
  
  <blockquote>
    <p>@EnableAsync(proxyTargetClass = true)</p>
  </blockquote>
  
  <p>but still no luck.</p>
  
  <p>Below is the message I am getting on application start.</p>
  
  <hr>
  
  <p>APPLICATION FAILED TO START</p>
  
  <hr>
  
  <p>Description:</p>
  
  <p>The bean 'MyBatchSyncProcessor' could not be injected as a 'com.a.b.c.service.MyBatchSyncProcessor' because it is a JDK dynamic proxy that implements:
      com.a.b.c.service.BaseSyncProcessor</p>
  
  <p>Action:</p>
  
  <p>Consider injecting the bean as one of its interfaces or forcing the use of CGLib-based proxies by setting proxyTargetClass=true on @EnableAsync and/or @EnableCaching.</p>
  
  <p>Please help me out in getting this application up and running. </p>