spring cloud gateway 整合出现的坑
1.整合是出现问题:注:添加的依赖<dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-gateway</artifactId>...
·
1.整合是出现问题:
注:添加的依赖
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-gateway</artifactId>
</dependency>
2.解决:
将gateway中的“spring-boot-starter-webflux” 去掉可以编译成功
但是会出现“Spring Webflux is missing from the classpath, which is required for Spring Cloud Gateway at this time. Please add spring-boot-starter-webflux dependency.”;
解决,重新引入spring-boot-starter-webflux依赖
在这里我引入的是:
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-webflux -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
<version>2.1.0.RELEASE</version><!--$NO-MVN-MAN-VER$-->
</dependency>
更多推荐
已为社区贡献1条内容
所有评论(0)