title: How to create an interceptor for annotation @Controller
body: <p>I joined an existing project who use 2 mechanisms for the front-end with spring mvc:</p>
  
  <ul>
  <li>A) controllers classes extends
  org.springframework.web.servlet.mvc.SimpleFormController</li>
  <li>B) controllers classes uses annotation @Controller.</li>
  </ul>
  
  <p>Now I found an interceptor:</p>
  
  <pre><code>@Aspect
  public class RequestMonitor {
  
      @Autowired
      private RequestMonitorService requestMonitorService;
  
      @Before("execution(* org.springframework.web.servlet.mvc.Controller+.handleRequest(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse))"
              + "&amp;&amp; args(request,response)")
      public void storeUserAccess(HttpServletRequest request, HttpServletResponse response) {
          requestMonitorService.storeUserAccess(request);
      }
  }
  </code></pre>
  
  <p>who catch all requests from org.springframework.web.servlet.mvc.Controller (mechanism A)</p>
  
  <p>How can I adapt to intercept all other controllers with annotations "@Controller": org.springframework.stereotype.Controller (mechanism B)</p>