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. |
Strategy Design Patterns We can easily create a strategy design pattern using lambda. To implement…
Decorator Pattern A decorator pattern allows a user to add new functionality to an existing…
Delegating pattern In software engineering, the delegation pattern is an object-oriented design pattern that allows…
Technology has emerged a lot in the last decade, and now we have artificial intelligence;…
Managing a database is becoming increasingly complex now due to the vast amount of data…
Overview In this article, we will explore Spring Scheduler how we could use it by…