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>

 

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐