piomin / sample-spring-microservices-new

Demo for Spring Boot 3(`master` branch)/2(other branches) and Spring Cloud microservices with distributed configuration (Spring Cloud Config), service discovery (Eureka), API gateway (Spring Cloud Gateway, Zuul), Swagger/OpenAPI documentation (Springdoc), logs correlation using Spring Cloud Sleuth/Micrometer OTEL and many more
https://piotrminkowski.com
1.17k stars 744 forks source link

Wrong URI show in spring doc for downstream service #109

Closed ducanh2110 closed 5 months ago

ducanh2110 commented 7 months ago

Hi @piomin. I've migrated from spring boot 2 to spring boot 3. Changed from swagger2 to spring doc. When I was in spring boot 2 when I accessed the swagger from gateway then select each downstream service docs. The url of each endpoints would be: gateway-service/downstream-service/... But when I cloned your repo to use, It only show the downstream IP in each docs from swagger of gateway. Anyway to centralize with the real url client will access not directly to downstream service

piomin commented 5 months ago

Thanks for reporting. It should work fine now