master
Rossen Stoyanchev 7 years ago
parent cb8ad46564
commit 846636f2b9
  1. 6
      spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/InterceptorRegistration.java

@ -65,7 +65,8 @@ public class InterceptorRegistration {
}
/**
* Add URL patterns as list to which the registered interceptor should apply to.
* List-based variant of {@link #addPathPatterns(String...)}.
* @since 5.0.3
*/
public InterceptorRegistration addPathPatterns(List<String> patterns) {
this.includePatterns.addAll(patterns);
@ -81,7 +82,8 @@ public class InterceptorRegistration {
}
/**
* Add URL patterns as list to which the registered interceptor should not apply to.
* List-based variant of {@link #excludePathPatterns(String...)}.
* @since 5.0.3
*/
public InterceptorRegistration excludePathPatterns(List<String> patterns) {
this.excludePatterns.addAll(patterns);

Loading…
Cancel
Save