MVC Java Config - HandlerInterceptor not excluding paths
问题 I have a MVC Java configuration but the HandlerInterceptor is not excluding some patterns. At the line marked with xxx , if 1) I add both addPatterns("/**") and excludePathPatterns("*.ecxld") to the HandlerInterceptor 's InterceptorRegistration , the HandlerInterceptor.preHanlde() is NOT invoked at all. e.g .addPathPatterns("/**").excludePathPatterns("*.ecxld") 2) I add only excludePathPatterns("*.ecxld") to the HandlerInterceptor 's InterceptorRegistration , the HandlerInterceptor.preHanlde(