这个错误,之前一直没遇到过,莫名其妙。
问题描述:在整合springcloud gateway的时候,提示链接被重置,console控制台打印出标题错误
后来通过想起视频里面的,要做好springboot 的版本和springcloud的对应关系。错误的时候,springboot版本是2.2.5.RELEASE,gateway版本是默认的2.1.0.RELEASE。改正之后如下:都为2.1.3.RELEASE
<!--父工程-->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.3.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-gateway</artifactId>
<version>2.1.3.RELEASE</version>
</dependency>