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.
Loading...
Related Quiz
- When creating a Custom Validator in Spring Boot, the isValid method must return _____ to indicate whether the value meets the constraint.
- In Spring Data JPA, what is the primary role of the @Transactional annotation?
- How do you bind the HTTP request body to the parameters of a method in a Spring Boot application?
- You are tasked to implement dynamic role-based access control in a Spring Security application where roles and permissions can be modified at runtime. What approach and components of Spring Security would you use to fulfill this requirement?
- In a Spring Boot application, you are required to develop a feature where the response body should be customized based on the client's preference. How would you implement this feature using Spring Boot annotations?