springCloud gateway 啓動報錯:org.springframework.http.codec.ServerCodecConfigurer' that could not be fo

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依賴去掉。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章