Close
« Tutorial

Spring MVC - @EnableWebMvc MCQ

0/13
0 ✓
0 ✗

1. What is the primary purpose of the @EnableWebMvc annotation in Spring Framework?

2. On which type of class is the @EnableWebMvc annotation typically applied?

3. Which component, enabled by @EnableWebMvc, is responsible for mapping incoming HTTP requests to specific handler methods?

4. What is the primary role of RequestMappingHandlerAdapter, enabled by @EnableWebMvc?

5. How can one customize the default Spring MVC configuration provided by @EnableWebMvc?

6. What happens when @EnableWebMvc is used in a Spring Boot application?

7. Which of the following is NOT directly provided or automatically configured by @EnableWebMvc itself, but rather its infrastructure supports it?

8. Which infrastructure component is enabled by @EnableWebMvc to facilitate conversion between HTTP request/response bodies and Java objects (e.g., JSON, XML)?

9. For what purpose does @EnableWebMvc enable ExceptionHandlerExceptionResolver?

10. Which interface allows you to register custom Formatters or Converters when using @EnableWebMvc?

11. What is the main reason @EnableWebMvc is often not explicitly needed in typical Spring Boot applications?

12. When configuring Spring MVC with @EnableWebMvc, what is the purpose of registering a Validator?

13. Which class provides the default configuration that @EnableWebMvc effectively imports?

14. If you need to configure static resource handling (like CSS, JS, images) when using @EnableWebMvc, which interface method would you typically override?

15. Does @EnableWebMvc automatically scan for @Controller or @RestController annotated classes?

Join