The @WebMvcTest annotation in Spring Boot will _____ any @Component, @Service, and @Repository beans by default.

  • Annotate
  • Disable
  • Exclude
  • Include
The @WebMvcTest annotation in Spring Boot includes, by default, only the beans annotated with @Controller, @ControllerAdvice, @JsonComponent, and Converter beans. It does not include @Component, @Service, and @Repository beans.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *