Closed KyrieY closed 3 years ago
this happens when spring-boot-starter-web is on the classpath and this has been fixed #2176
Spring boot 2.7.3 encountered the same problem. Spring boot starter web is not under the classpath
any solutions?
any solutions?
Still happening. Any workaround?
Remove the spring boot start web dependency. Because the Spring Cloud Gateway is based on WebFlux, if web support is required, it is necessary to import Spring Boot Starter WebFlux instead of Spring Boot Start Web. Then we can simply remove the jar dependency on the spring boot start web module in pom.xml.
bug description:
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.
Action: Consider defining a bean of type 'org.springframework.http.codec.ServerCodecConfigurer' in your configuration.
============================================================================ dependencies: