spring-boot-starter-web渚濊禆hibernate鍐茬獊
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spring-boot-starter-web渚濊禆hibernate鍐茬獊相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/error' title='error'>error 闂 cloc one fine parameter cat api ber
寮曞叆涓€涓緷璧栧悗鎶ラ敊
org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 鈥榯omcatEmbeddedServletContainerFactory鈥?defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 鈥榦rg.springframework.boot.autoconfigure.web.HttpEncodingAutoConfiguration鈥? Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 鈥榮pring.http.encoding-org.springframework.boot.autoconfigure.web.HttpEncodingProperties鈥? Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/validator/internal/engine/DefaultClockProvider
...
Caused by: java.lang.NoClassDefFoundError: org/hibernate/validator/internal/engine/DefaultClockProvider
鏄敱浜巗pring-boot-starter-web閲岄潰渚濊禆鐨刪ibernate-validator涓庡叾浠栫殑渚濊禆鍐茬獊浜嗭紝鍗曠嫭鍔犱緷璧栧悗瑙e喅璇ラ棶棰?/p>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.0.Final</version>
</dependency>
以上是关于spring-boot-starter-web渚濊禆hibernate鍐茬獊的主要内容,如果未能解决你的问题,请参考以下文章
Apache Flink - 閰嶇疆渚濊禆锛岃繛鎺ュ櫒锛屽簱
使用 spring-boot-starter-web “找不到可接受的表示”