title: @EnableAspectJAutoProxy not work with proxyTargetClass=false
body: <p>I am learning about Spring AOP at first time. </p>
  
  <p>I am reading about in this sites:
  <a href="http://city81.blogspot.com.es/2012/05/using-spring-profile-with.html" rel="noreferrer">Site2</a> and
  <a href="http://docs.spring.io/spring/docs/3.1.4.RELEASE/javadoc-api/org/springframework/context/annotation/EnableAspectJAutoProxy.html" rel="noreferrer">Site1</a></p>
  
  <p>Following this I have made the next classes</p>
  
  <p>Main class:</p>
  
  <pre><code>public class App {
  
      public static void main(String[] args) {
  
          AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
          context.register(AppConfig.class);
          context.refresh();
  
          MessagePrinter printer = context.getBean(MessagePrinter.class);
  
          System.out.println(printer.getMessage());
      }
  }
  </code></pre>
  
  <p>App config class:</p>
  
  <pre><code>@Configuration
  @ComponentScan("com.pjcom.springaop")
  @EnableAspectJAutoProxy(proxyTargetClass=true)
  public class AppConfig {
  
      @PostConstruct
      public void doAlert() {
  
          System.out.println("Application done.");
      }
  
  }
  </code></pre>
  
  <p>Aspect class:</p>
  
  <pre><code>@Component
  @Aspect
  public class AspectMonitor {
  
      @Before("execution(* com.pjcom.springaop.message.impl.MessagePrinter.getMessage(..))")
      public void beforeMessagePointCut(JoinPoint joinPoint) {
  
          System.out.println("Monitorizando Mensaje.");
      }
  
  }
  </code></pre>
  
  <p>And others...</p>
  
  <p>Just like that app work nice, but if I put proxyTargetClass to false. Then I get the error below.</p>
  
  <pre><code>Exception in thread "main" org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.pjcom.springaop.message.impl.MessagePrinter] is defined
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:318)
      at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:985)
      at com.pjcom.springaop.App.main(App.java:18)
  </code></pre>
  
  <p>Why?</p>