Skip to content

Commit 9529dfb

Browse files
committed
Update WebMvcConfigurer#addInterceptors Javadoc
Closes gh-23926
1 parent fdf936c commit 9529dfb

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurer.java

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -90,15 +90,9 @@ default void addFormatters(FormatterRegistry registry) {
9090

9191
/**
9292
* Add Spring MVC lifecycle interceptors for pre- and post-processing of
93-
* controller method invocations. Interceptors can be registered to apply
94-
* to all requests or be limited to a subset of URL patterns.
95-
* <p><strong>Note</strong> that interceptors registered here only apply to
96-
* controllers and not to resource handler requests. To intercept requests for
97-
* static resources either declare a
98-
* {@link org.springframework.web.servlet.handler.MappedInterceptor MappedInterceptor}
99-
* bean or switch to advanced configuration mode by extending
100-
* {@link org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport
101-
* WebMvcConfigurationSupport} and then override {@code resourceHandlerMapping}.
93+
* controller method invocations and resource handler requests.
94+
* Interceptors can be registered to apply to all requests or be limited
95+
* to a subset of URL patterns.
10296
*/
10397
default void addInterceptors(InterceptorRegistry registry) {
10498
}

0 commit comments

Comments
 (0)