When using the @WebMvcTest annotation in Spring Boot, only the _____ are typically loaded into the application context.

  • configuration files
  • controllers and related components
  • entire application context
  • service and repository beans
With @WebMvcTest, only the controllers and related components are typically loaded into the application context. This is useful for testing the web layer of your application in isolation without loading the entire context.
Add your answer
Loading...

Leave a comment

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