Google News
logo
Java Spring MVC - Interview Questions
What is the role of @EnableWebMvc annotation in Spring MVC?
The @EnableWebMvc annotation allows you to configure Spring application without using the XML based configuration/declaration. This annotation is equivalent to using the <mvc:annotation-driven /> in XML. Here is the list of some important features of the @EnableWebMvc annotation :
 
* Enable support for request processing.
* Support for validation using JSR-303 bean validation.
* Number and date formatting support.
* HttpMessageConverter support.
Advertisement