'org.springframework.http.codec.ServerCodecConfigurer' that could not be found.
当启动出现这个错误 则是jar包冲突导致的
在pom中 屏蔽掉冲突的jar包就可以了
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-gateway</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
</exclusion>
</exclusions>
</dependency>
本文介绍了解决Spring Cloud Gateway启动时遇到'org.springframework.http.codec.ServerCodecConfigurer'未找到的问题。该问题通常由jar包冲突引起,文章提供了在Maven配置文件pom.xml中排除冲突jar包的方法。
1433





