【发布时间】:2013-07-10 16:06:59
【问题描述】:
在 Spring-mvc 拦截器中,我想访问处理程序控制器方法
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;
}
...
}
我找到了:
how-to-get-controller-method-name-in-spring-interceptor-prehandle-method
但它只能解决。我希望方法名能够访问注解。
【问题讨论】:
标签: java spring-mvc interceptor