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, 然后在eclipse或者idea上debug,
工程构建失败,提示如下:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
上面提示推测还是Hibernate-validator-5.2.5.final.jar的问题
3.解决方案
a.在本地maven库中删除Hibernate-validator包下的所有文件(我的是D:\dev-tool\maven-repository\org\hibernate\hibernate-validator),重新下载这个包
b.执行mvn clean compile,构建成功
转自http://blog.youkuaiyun.com/yimiguan/article/details/78832368