Exception while starting spring web mvc application

北战南征 提交于 2019-12-03 14:43:11
xerx593

The key statement of your stack trace is:

java.lang.AbstractMethodError: org.hibernate.validator.internal.engine.ConfigurationImpl.getDefaultParameterNameProvider()Ljavax/validation/ParameterNameProvider;

This answer seems also to apply to your problem description/exception message: You have a conflicting javax.validation version!

Hint: I prefer Netbeans' "Graph View" (of a pom editor) for identification & elimination of dependency conflicts (especially after some version upgrade). The "pure-maven-way" would be:

mvn dependency:tree -Dverbose -Dincludes=javax.validation

for my case, it was due to the spring mvc version from spring boot starter web not compatible with spring data. and the exception could be really tricky, where there are two constructors for AbstractMethodError, while the first one is default without any parameter. So depends on the implementation, if they throw exception using first constructor, would require a lot hard work for debugging.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!