Skip to content

Commit 94a7571

Browse files
committed
Document HandlerInterceptor is scanned by @WebMvcTest
See gh-17601
1 parent 6580d39 commit 94a7571

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7379,8 +7379,9 @@ assertThat(json.write(message))
73797379
To test whether Spring MVC controllers are working as expected, use the `@WebMvcTest`
73807380
annotation. `@WebMvcTest` auto-configures the Spring MVC infrastructure and limits
73817381
scanned beans to `@Controller`, `@ControllerAdvice`, `@JsonComponent`, `Converter`,
7382-
`GenericConverter`, `Filter`, `WebMvcConfigurer`, and `HandlerMethodArgumentResolver`.
7383-
Regular `@Component` beans are not scanned when using this annotation.
7382+
`GenericConverter`, `Filter`, `HandlerInterceptor`, `WebMvcConfigurer`, and
7383+
`HandlerMethodArgumentResolver`. Regular `@Component` beans are not scanned when using
7384+
this annotation.
73847385

73857386
TIP: A list of the auto-configuration settings that are enabled by `@WebMvcTest` can be
73867387
<<appendix.adoc#test-auto-configuration,found in the appendix>>.

0 commit comments

Comments
 (0)