Skip to main content

WebMvcConfigurer

Learn WebMvcConfigurer (Spring MVC Configuration, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes WebMvcConfigurer is a callback interface for customizing Spring MVC. All methods are default , so you override only what you need. Typical hooks : addInterceptors , addResourceHandlers , addCorsMappings , addViewControllers and configureMessageConverters . Use with : @EnableWebMvc in plain Spring, or alone in Spring Boot to keep the defaults.

More lessons in Spring MVC Configuration