Spring Boot奇怪的问题:The Bean Validation API is on the classpath but no implementation could be found
2017-08-23 22:05
4235 查看
注意:此方法不能解决在项目上用了Hibernate Validator的问题。
错误如下:
场景:
新搭建的Spring Boot项目,就最简单的Hello World实例,没有用什么Hibernate Validator,而且在其它系统都能正常,但就其中一台LInux无法运行。
解决方法:
直接删除整个.m2文件夹,重新下载所有的包即可。怀疑是其中的某些包下载回来有问题,可能是权限问题等。
参考:
https://stackoverflow.com/questions/41879541/spring-boot-sample-unable-to-start-embedded-container-error
错误如下:
*************************** 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 classpath
场景:
新搭建的Spring Boot项目,就最简单的Hello World实例,没有用什么Hibernate Validator,而且在其它系统都能正常,但就其中一台LInux无法运行。
解决方法:
直接删除整个.m2文件夹,重新下载所有的包即可。怀疑是其中的某些包下载回来有问题,可能是权限问题等。
参考:
https://stackoverflow.com/questions/41879541/spring-boot-sample-unable-to-start-embedded-container-error
相关文章推荐
- Spring Boot:The Bean Validation API is on the classpath but no implementation could be found
- 安装springboot时遇到 LoggerFactory is not a Logback LoggerContext but Logback is on the classpath.问题
- javax.validation.ValidationException: Unable to create a Configuration, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.
- 关于dubbo服务的xml配置文件报错的问题--The matching wildcard is strict, but no declaration can be found for element
- log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlA
- VS Code打开使用IDEA搭建的Spring Boot项目运行提示"snakeyaml was not found on the classpath"错误
- 关于dubbo创建服务和引用服务时,会报错:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 问题的解决
- 问题:Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME does not point to the JDK
- AS使用lombok注解报错:Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor.
- The matching wildcard is strict, but no declaration can be found for element
- dubbo配置报错:The matching wildcard is strict, but no declaration can be found for element
- 解决com.sun.tools.javac.Main is not on the classpath的问题
- No JVM could be found on your system.Please define EXE4J_JAVA_HOME问题解决方法(版本问题)
- 解决dubbo的vc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for
- jdk重装后com.sun.tools.javac.Main is not on the classpath的问题 .
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
- 奇葩问题:This file could not be checked in because the original version of the file on the server was moved or deleted. A new version of this file has been saved to the server, but your check-in comments were not saved
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
- Unable to create a Configuration, because no Bean Validation provider could be found.
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element