Close
« Tutorial

Spring MVC - Custom WebBindingInitializer MCQ

0/13
0 ✓
0 ✗

1. What is the main job of a WebBindingInitializer in Spring MVC?

2. What is a WebDataBinder used for?

3. What is ConfigurableWebBindingInitializer?

4. Which Spring MVC component uses the ConfigurableWebBindingInitializer to apply data conversion, formatting and validation to requests?

5. What is the scope of a custom PropertyEditor that is registered through a ConfigurableWebBindingInitializer?

6. When might you remove @EnableWebMvc and extend WebMvcConfigurationSupport directly?

7. If a configuration class already extends WebMvcConfigurationSupport, is @EnableWebMvc needed?

8. Which method of WebMvcConfigurationSupport can you override to customize the ConfigurableWebBindingInitializer?

9. Why should you usually call the super version of the initializer method when you customize it?

10. Which interface is used to register custom property editors in a ConfigurableWebBindingInitializer?

11. Which built-in Spring class is a PropertyEditor that converts text to java.util.Date using a given date format?

12. A custom editor for the Date type is registered globally with the format yyyy-MM-dd. What happens when a request sends a date in a different format?

13. When you register a custom editor for a type such as Date.class, when is that editor used?

14. How is customizing a ConfigurableWebBindingInitializer different from replacing it completely?

Join