Add an implementation, such as Hibernate Validator, to the classpath
把maven打成的包放在docker上运行 报错:
***************************
2023/1/9 下午10:05:29APPLICATION FAILED TO START
2023/1/9 下午10:05:29***************************
2023/1/9 下午10:05:29
2023/1/9 下午10:05:29Description:
2023/1/9 下午10:05:29
2023/1/9 下午10:05:29The Bean Validation API is on the classpath but no implementation could be found
2023/1/9 下午10:05:29
2023/1/9 下午10:05:29Action:
2023/1/9 下午10:05:29
2023/1/9 下午10:05:29Add an implementation, such as Hibernate Validator, to the classpath
2023/1/9 下午10:05:29
新增依赖如下:
<dependency>
<groupId>org.hibernate.validator</groupId>
<artifactId>hibernate-validator</artifactId>
<version>6.1.5.Final</version>
</dependency>