spring cloud gateway閘道器
阿新 • • 發佈:2019-06-18
先記錄一個錯誤再說,在啟動的時候報錯
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.
這是因為我的根pom引用spring-boot-starter-web導致的,需要取消掉。因為Spring Cloud Gateway 是使用 netty+webflux實現,webflux與web是衝突的。
參考連結:
https://blog.csdn.net/jamesleel/article/details/84