启动报错如下:
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
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
解决办法:
把pom.xml文件中
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-gateway</artifactId>
</dependency>
删掉刷新重新导入,或替换为:
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-gateway</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-contract-stub-runner</artifactId>
<exclusions>
<exclusion>
<artifactId>spring-boot-starter-web</artifactId>
<groupId>org.springframework.boot</groupId>
</exclusion>
</exclusions>
</dependency>