问题 :搭建spring cloud gateway api网关时,报错 'org.springframework.http.codec.ServerCodecConfigurer' that could not be found.
原因:spring-boot-starter-web依赖冲突
解决办法:我的是和spring-cloud-starter-netflix-zuul包中的spring-boot-starter-web依赖冲突。
具体还要看情况,仔细查找spring-boot-starter-web包的依赖关系,排除冲突的依赖:
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</exclusion>
</exclusions>