Error creating bean with name 'methodValidationPostProcessor' defined in class path resource

异常: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 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘jotm’ defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.hfb.merchant.datasource.JotmFactoryBean]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: stub class initialization failed


	org.springframework.boot
	spring-boot-starter-web
	
	
		
			org.springframework.boot
			spring-boot-starter-tomcat
		
		
			 org.hibernate
			hibernate-validator
		
	

Error creating bean with name 'methodValidationPostProcessor' defined in class path resource_第1张图片
如上图所示加入红框中的代码

你可能感兴趣的:(Error creating bean with name 'methodValidationPostProcessor' defined in class path resource)