Spring boot : Error creating bean with name 'methodValidationPostProcessor'
-1
I have a spring boot application and i am creating war file and deploying on Tomcat 8. The code works perfectly well when running in my Eclipse Oxygen and i am getting below exception when running application on Tomcat8. Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'methodValidationPostProcessor' defined in class path resource [org/springframework/boot/autoconfigure/validation/ValidationAutoConfiguration.class]: Unsatisfied dependency expressed through method 'methodValidationPostProcessor' parameter 1; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'javax.validation.Validator' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annot...