java.lang.NoClassDefFoundError: org/hibernate/validator/internal/engine/DefaultClockProvider

① in springboot of springboot-starter-web default dependence introduces the following:

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.8.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.8.7</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.8.7</version>
</dependency>


In the spring-boot-starter-web of the package integrates all dependent packages such springframework spring-bean, tx, core, etc. on the need to introduce springframework package. Or else because the version number of packet collisions or cause failed to start. Solution: delete springframe package can be.

② The following error also pack problem

Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.validation.beanvalidation.LocalValidatorFactoryBean]: Factory method 'defaultValidator' threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/validator/internal/engine/DefaultClockProvider
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:579)
... 18 common frames omitted
Caused by: java.lang.NoClassDefFoundError: org/hibernate/validator/internal/engine/DefaultClockProvider


Since the introduction of the error is caused by this package, this package is doing?

Javax.xml.validation Package Description This package provides an API for validation of XML documents. Validation is to verify that an XML document instances of the specified XML schema of the process. XML schema defines the content model examples of documents will be represented (also known as grammar or vocabulary), is the elimination of all migration springboot xml, so did the xml, xml detection error caused the (self-understanding Ha)

Guess you like

Origin www.cnblogs.com/exmyth/p/11083638.html