playing-with-java-microservices-book-code icon indicating copy to clipboard operation
playing-with-java-microservices-book-code copied to clipboard

Error starting Api-gateway

Open fmmreis opened this issue 3 years ago • 0 comments

Hi, congratulations for the great book I'm having a problem starting API-gateway


APPLICATION FAILED TO START


Description:

Parameter 0 of method modifyResponseBodyGatewayFilterFactory 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.

I already tried some solutions I found online but without success: @Bean public ServerCodecConfigurer serverCodecConfigurer() { return ServerCodecConfigurer.create(); }

fmmreis avatar Feb 20 '22 15:02 fmmreis