title: In a Spring-mvc interceptor, how can I access to the handler controller method?
body: <p>In a Spring-mvc interceptor I want to access to the handler controller method</p>
  
  <pre><code>public class CustomInterceptor implements HandlerInterceptor  {
      public boolean preHandle(
          HttpServletRequest request,HttpServletResponse response, 
              Object handler) {
  
          log.info(handler.getClass().getName()); //access to the controller class
          //I want to have the controller method
          ...
          return true;
     }
     ...
  }
  </code></pre>
  
  <p>I have found : </p>
  
  <p><a href="https://stackoverflow.com/questions/8384903/how-to-get-controller-method-name-in-spring-interceptor-prehandle-method">how-to-get-controller-method-name-in-spring-interceptor-prehandle-method</a></p>
  
  <p>But it only work around. I want the method name to access to the annotation.</p>