playing-with-java-microservices-book-code
playing-with-java-microservices-book-code copied to clipboard
Error starting Api-gateway
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(); }