We have a legacy product with simple JSP and Servlet technologies and we got a new requirement to implement a REST API based on existing business logic layer. Therefore we thought of integrating Spring MVC and use the Spring's rest support. After reading the documentation i decided configure the MVC through the XML as below
<mvc:annotation-driven/>
however this automatically registers couple of additional beans including Support for validating @Controller inputs with @Valid(JSR-303). We do not use hibernate in our application and there is no real requirement to use this feature in our application for the moment. Is there any way of disabling this validation support?
I found below question, but i prefer more elegant solution with a simple configuration.