title: Constructor of Spring Boot RestController not invoked when using aspect
body: <p>I am new to AOP and currently trying to implement an aspect for controller methods annotated with a custom annotation.
  I allways get a <em>NullPointerException</em> on <em>repository</em> when <em>myFunction</em> is invoked. It seems that i have two instances of of the controller. One of them is instantiated without autowiring the repository. When i remove @MyAnnotation everything works as expected.</p>
  
  <p>Can you give me any hint on how to force Spring/AspectJ to use my constructor?</p>
  
  <p>My controller looks like:</p>
  
  <pre><code>@RestController
  @RequestMapping(value = "/api")
  public class MyController {
      private Repository repository;
  
      public MyController(Repository repository) {
          this.repository = repository;
      }
  
      @RequestMapping(value = "/{variable1}", method = GET)
      @MyAnnotation
      public final FeatureCollection myFunction(
          final @PathVariable(required = true) long variable1
      ) {
          repository.findById(variable1);
          (...)
      }
  }
  </code></pre>
  
  <p>The aspect:</p>
  
  <pre><code>@Aspect
  public class MyAspect {
      @Around("@annotation(MyAnnotation)")
      public Object any(ProceedingJoinPoint pjp) throws Throwable {
          return pjp.proceed();
      }
  }
  </code></pre>
  
  <p>The configuration:</p>
  
  <pre><code>@Configuration
  @EnableAspectJAutoProxy
  public class WebConfig {
      @Bean
      public MyAspect myAspect() {
          return new MyAspect();
      }
  }
  </code></pre>