springdoc / springdoc-openapi

Library for OpenAPI 3 with spring-boot
https://springdoc.org
Apache License 2.0
3.3k stars 501 forks source link

All css/js are not loading in springdoc #2392

Closed baljeets01 closed 1 year ago

baljeets01 commented 1 year ago

Describe the bug

I'm working on an upgrade task in a project where I'm upgrading the swagger from springfox(3.0.0) to springdoc(1.7.0). The project uses microservices architecture where maximum microservices uses springboot (2.7.7) and a few are still on spring MVC(5.3.25) I'm able to see the json from all the microservices. There is a separate microservice that collects all the API definition and show it on swagger-ui page, but the swagger-ui page is shown as blank. It is unable to load index.css and swagger-initializer.js. I have tried all the possible solutions given but none of them worked.

image

Any help in this is highly appreciated.

uc4w6c commented 1 year ago

Please provide a Minimal, Reproducible Example - with HelloController that reproduces the issue.

This ticket will be closed and can be reopened if the relevant information are provided.