1、問題描述:
Parameter 0 of method modifyRequestBodyGatewayFilterFactory in org.springframework.cloud.gateway.config.GatewayAutoConfiguration required a bean of type ‘org.springframework.http.codec.ServerCodecConfigurer’ that could not be found.
2、問題原因
GatewayAutoConfiguration這個配置中找不到ServerCodecConfig這個Bean
3、問題解決
將pom.xml中關於spring-boot-start-web模塊的jar依賴去掉。