WebMvcConfigurerAdapter vs WebMvcConfigurationCupport
WebMvcConfigurationSupport | WebMvcConfigurerAdapter |
In the Spring MVC framework, this is the main class providing the configuration behind the MVC Java config. | This is simple adapter class for customizing some of the default configuration. |
We could use the @EnableWebMvc annotation to import the configuration of this class automatically. | This is not related to the @EnableWebMvc annotation. |
We could extend WebMvcConfigurationSupport class to prevent the default configuration imported by the @EnableWebMvc annotation. | We could extend WebMvcConfigurerAdapter class to customize some of the default configuration imported by @EnableWebMvc annotation. |
In the java configuration file for spring mvc either we could use @EnableWebMvc annotation or extend WebMvcConfigurationSupport class. | If we are extending this class, still required to use @EnableWebMvc annotation, otherwise application will not work. |
- Spring MVC Web Tutorial
- Spring MVC Interview Questions
- MVC Design Pattern
- Spring MVC DispatcherServlet
- Spring MVC WebApplicationContext and Root Application Context
- Spring MVC @Controller Annotation
- Spring MVC @RequestMapping Annotation
- Spring MVC @RequestParam Annotation
- Spring MVC ContextLoaderListener
- Spring MVC @RequestParam and @PathVariable annotations
- Spring MVC Hello World Example
- Spring MVC Exception Handling Example
- Spring MVC with Hibernate CRUD Example
- Spring MVC Tiles Plugin with Example
- Spring MVC Interceptor with example
- Spring MVC with MongoDB CRUD Example
- Spring MVC Internationalization & Localization with Example
No Responses