admin管理员组文章数量:1636986
spring boot 版本1.4.7.RELEASE
1.启动报错如下:
ationConfigEmbeddedWebAp ationConfigEmbeddedWebAp o. s. b. d. LoggingFai1ureAn
APPLICATION FAILED TO START
Description :
The Bean Validation API is on the classpath but no implementation could be found
Action : Add an implementation, such as Hibernate Validator, to the classpeth
2.报错分析
Hibernate Validator的加载问题,查看maven库Hibernate-validator-5.2.5.final.jar存在;
执行mvn clean,mvn install.
工程构建失败,提示如下:
18T12: 54: 41+08: oo
file "pom.xml" could not be activated because it does not exist.
oa1 org.apache.maven.plugins:maven-compi1er-p1ugin:3.1:compi1e (default-compile) on project demo: Compilation failure: Compilation fai invalid LOC header (bad signature)
sitory\org\hibernate\hibernate validator\5.2.5. Final\hibernate validator-5.2.5.Fina1.jar
src/main/java/example/ft1/FreeMa rke rConfig. java : [8 , 17]
org.junit
Ck trace of the errors, re-run Maven with the
-e switch.
the -X switch to enable full debug logging.
上面提示推测还是Hibernate-validator-5.2.5.final.jar的问题
3.解决方案
a.在本地maven库中删除Hibernate-validator包下的所有文件,重新下载这个包
b.执行mvn install,构建成功
本文标签: AddbootSpringimplementclasspath
版权声明:本文标题:Spring boot 报Add an implement,such as Hibernate Validator, to the classpath 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1729234534a1191843.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论