title: The bean could not be injected as a 'Type' because it is a JDK dynamic proxy that implements: reactor.fn.Consumer
body: <p>My Spring 4 application, which uses Reactor 2, fails to start with:</p>
  
  <pre><code>***************************
  APPLICATION FAILED TO START
  ***************************
  
  Description:
  
  The bean 'orderHandlerConsumer' could not be injected as a 'fm.data.repository.OrderHandlerConsumer' because it is a JDK dynamic proxy that implements:
      reactor.fn.Consumer
  
  
  Action:
  
  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.
  </code></pre>
  
  <p>The <code>OrderHandlerConsumer</code> is really simple:</p>
  
  <pre><code>@Service
  @Order(Ordered.HIGHEST_PRECEDENCE)
  public class OrderHandlerConsumer implements Consumer&lt;Event&lt;OrderEnvelope&gt;&gt; {
      @Override
      public void accept(Event&lt;OrderEnvelope&gt; event) {
          event.getData().getLatch().countDown();
      }
  }
  </code></pre>
  
  <p>Any ideas what might be going awry?</p>