79597693

Date: 2025-04-29 06:07:38
Score: 0.5
Natty:
Report link

Maybe it will be useful for someone! As far as I could understand the problem:

cloud:
  gateway:
    routes:
      - id: resume-analyzer-route
        uri: http://resume-analyzer:8083

But you can implement a bean in each service and in API Gateway, for manual server configuration, which will override the default server, it helped me!

@OpenAPIDefinition
@Configuration
public class OpenApiConfig {

    @Bean
    public OpenAPI customOpenAPI() {
        return new OpenAPI()
                .addServersItem(new Server()
                        .url("http://localhost:8765/analyzer")
                        .description("Analyzer API"));
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Виктор Гловлюк