springcloud -搭建gateway 遇到一个小坑
1、引入GateWay一定要删除spring-boot-starter-web依赖,否则会有冲突无法启动
2、使用springboot 版本最好是2.2.6以上版本,原来使用的2.2.4版本启动gateway的时候也能正常启动,但是就是使用不了
3、在父模块中指定版本,这个之前是加过的,此处记录一下
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Dalston.SR1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

浙公网安备 33010602011771号