<div dir="ltr" style="text-align: justify;" trbidi="on">In this tutorial, we will discuss about difference between webmvcconfigureradapter vs webmvcconfigurationsupport. These both classes are related to Spring MVC java based configuration. It is actually simplified web configuration with Spring in the web application. Let&#8217;s see some differences between of these two classes.</p>
<div align="center" id="ads-id"></div>
<div style="background-color: #f2f9fc; border-radius: 3px; border: 1px solid #c9e6f2; line-height: 1.45; padding: 16px;"><b>Popular Tutorials</b></p>
<ul style="text-align: left;">
<li><b><a href="https://dineshonjava.com/2012/06/spring-30-baby-step-to-learn.html"><em><strong>Spring Tutorial</strong> </em></a></b></li>
<li><b><a href="https://dineshonjava.com/2012/12/spring-web-mvc-framework-chapter-38.html"><strong><em>Spring MVC Web Tutorial </em></strong></a></b></li>
<li><b><a href="https://dineshonjava.com/2016/06/introduction-to-spring-boot-a-spring-boot-complete-guide.html"><em><strong>Spring Boot Tutorial</strong> </em></a></b></li>
<li><b><a href="https://dineshonjava.com/2013/02/spring-security-take-baby-step-to-secure.html"><em>Spring Security Tutorial</em></a></b></li>
<li><b><a href="https://dineshonjava.com/2017/03/spring-aop-tutorial-with-example-aspect-advice-pointcut-joinpoint.html"><em>Spring AOP Tutorial</em></a></b></li>
<li><b><a href="https://dineshonjava.com/2012/12/using-spring-jdbc-framework-chapter-32.html"><em>Spring JDBC Tutorial</em></a></b></li>
<li><b><a href="https://dineshonjava.com/2017/01/spring-hateoas-hypermedia-driven-restful-web-service.html"><em><strong>Spring HATEOAS </strong></em></a></b></li>
<li><b><a href="https://dineshonjava.com/2017/01/microservices-with-spring-boot.html"><em><strong>Microservices with Spring Boot</strong></em></a></b></li>
<li><b><a href="https://dineshonjava.com/2013/06/jax-rs-web-service-tutorial.html"><strong><em>REST Webservice</em> </strong></a></b></li>
<li><b><a href="https://dineshonjava.com/2013/01/core-java-baby-step-to-be-best-java-ian.html"><em><strong>Core Java </strong></em></a></b></li>
<li><b><a href="https://dineshonjava.com/2012/03/hibernate-3-on-baby-steps.html"><em><strong>Hibernate Tutorial</strong></em></a></b></li>
<li><b><a href="https://dineshonjava.com/2012/12/spring-batch-process-with-example.html"><strong><em>Spring Batch</em> </strong></a></b></li>
</ul>
</div>
<p>
<b>WebMvcConfigurerAdapter vs WebMvcConfigurationCupport </b></p>
<table align="center" border="1">
<tbody>
<tr>
<td><b>WebMvcConfigurationSupport</b></td>
<td><b>WebMvcConfigurerAdapter</b></td>
</tr>
<tr>
<td>In the Spring MVC framework, this is the main class providing the configuration behind the MVC Java config. </td>
<td>This is simple adapter class for customizing some of the default configuration.</td>
</tr>
<tr>
<td>We could use the @EnableWebMvc annotation to import the configuration of this class automatically. </td>
<td>This is not related to the @EnableWebMvc annotation.</td>
</tr>
<tr>
<td>We could extend WebMvcConfigurationSupport class to prevent the default configuration imported by the @EnableWebMvc annotation. </td>
<td>We could extend WebMvcConfigurerAdapter class to customize some of the default configuration imported by @EnableWebMvc annotation.</td>
</tr>
<tr>
<td>In the java configuration file for spring mvc either we could use @EnableWebMvc annotation or extend WebMvcConfigurationSupport class. </td>
<td>If we are extending this class, still required to use @EnableWebMvc annotation, otherwise application will not work.</td>
</tr>
</tbody>
</table>
<div style="background-color: #f2f9fc; border-radius: 3px; border: 1px solid #c9e6f2; line-height: 1.45; padding: 16px;"><b>Spring MVC Related Posts</b></p>
<ol style="text-align: left;">
<li><b><a href="https://dineshonjava.com/2012/12/spring-web-mvc-framework-chapter-38.html">Spring MVC Web Tutorial</a></b></li>
<li><b><a href="https://dineshonjava.com/2017/02/spring-mvc-interview-questions-and-answers.html">Spring MVC Interview Questions</a></b></li>
<li><b><a href="https://dineshonjava.com/2013/07/introduction-to-mvc.html">MVC Design Pattern</a></b></li>
<li><b><a href="https://dineshonjava.com/2017/02/what-is-dispatcherservlet-in-spring-and-its-uses.html">Spring MVC DispatcherServlet </a></b></li>
<li><b><a href="https://dineshonjava.com/2017/02/difference-between-applicationcontext-webapplicationcontext-in-spring-mvc.html">Spring MVC WebApplicationContext and Root Application Context</a></b></li>
<li><b><a href="https://dineshonjava.com/2012/07/stereotype-annotations-in-spring.html">Spring MVC @Controller Annotation</a></b></li>
<li><b><a href="https://dineshonjava.com/2016/03/requestmapping-annotation-in-spring-mvc.html">Spring MVC @RequestMapping Annotation</a></b></li>
<li><b><a href="https://dineshonjava.com/2017/02/requestparam-annotation-in-spring-mvc-with-example.html">Spring MVC @RequestParam Annotation</a></b></li>
<li><b><a href="https://dineshonjava.com/2017/02/difference-between-applicationcontext-webapplicationcontext-in-spring-mvc.html">Spring MVC ContextLoaderListener</a></b></li>
<li><b><a href="https://dineshonjava.com/2017/02/requestparam-vs-pathvariable-annotations-in-spring-mvc.html">Spring MVC @RequestParam and @PathVariable annotations</a></b></li>
<li><b><a href="https://dineshonjava.com/2012/12/spring-30-mvc-hello-world-example.html">Spring MVC Hello World Example</a></b></li>
<li><b><a href="https://dineshonjava.com/2012/12/spring-exception-handling-example.html">Spring MVC Exception Handling Example</a></b></li>
<li><b><a href="https://dineshonjava.com/2012/12/spring-mvc-with-hibernate-crud-example.html">Spring MVC with Hibernate CRUD Example</a></b></li>
<li><b><a href="https://dineshonjava.com/2012/12/spring-3-mvc-tiles-plugin-with-example.html">Spring MVC Tiles Plugin with Example</a></b></li>
<li><b><a href="https://dineshonjava.com/2012/12/spring-3-mvc-and-interceptor-with.html">Spring MVC Interceptor with example</a></b></li>
<li><b><a href="https://dineshonjava.com/2013/01/integration-spring-mvc3-and-mongodb.html">Spring MVC with MongoDB CRUD Example</a></b></li>
<li><b><a href="https://dineshonjava.com/2012/12/spring-3-mvc-internationalization.html">Spring MVC Internationalization &; Localization with Example</a></b></li>
</ol>
</div>
</div>
<div class="wp-post-navigation"> 
									 <div class="wp-post-navigation-pre"> 
									 <a href="https://dineshonjava.com/customizing-httpmessageconverter-with-spring-mvc-in-rest/">Previous</a> 
									 </div> 
									 <div class="wp-post-navigation-next"> 
									 <a href="https://dineshonjava.com/difference-between-controller-vs-restcontroller-in-spring-mvc/">Next</a> 
									 </div> 
									</div>
<script type="text/javascript">
jQuery(document).ready(function($) {
 $.post('https://dineshonjava.com/wp-admin/admin-ajax.php', {action: 'mts_view_count', id: '36'});
});
</script>
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…