You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, first I want to thank the authors of the project. We start moved from springfox and the process went quite simple.
But we faced with one point in the maven assembly. In our case, there is a need to build jar without dependencies. All dependencies should be moved to a separate folder. This is necessary for caching docker layers to reduce disk space in our docker image repository.
In this case, files related to the swagger-ui become unavailable, for example URL GET http://127.0.0.1:8080/swagger-ui/favicon-32x32.png 404
In the same time json spec URL is OK GET http://127.0.0.1:8080/v3/api-docs 200
Thank you for providing all the elements to reproduce this issue.
I confirm that serving the swagger-ui from outside the spring-boot application jar was not handled.
This support will be available for the next release: v1.2.27
Hi, first I want to thank the authors of the project. We start moved from springfox and the process went quite simple.
But we faced with one point in the maven assembly. In our case, there is a need to build jar without dependencies. All dependencies should be moved to a separate folder. This is necessary for caching docker layers to reduce disk space in our docker image repository.
In this case, files related to the swagger-ui become unavailable, for example URL
GET http://127.0.0.1:8080/swagger-ui/favicon-32x32.png 404
In the same time json spec URL is OK
GET http://127.0.0.1:8080/v3/api-docs 200
spring-boot version: 2.2.2.RELEASE
springdoc version: 1.2.26
maven build setup:
example project to reproduce issue:
https://github.com/xMandrake/spring-boot-swagger-example
It should be noted that there are no problems with the standard assembly
I tried add webjars dependencies directly
and run this assembly without jar dependencies. In this case swagger-ui files URLs available, but in webjars subfolder:
http://127.0.0.1:8080/webjars/swagger-ui/favicon-32x32.png
I would be grateful for the help or advice on how to properly configure such an assembly using springdoc
The text was updated successfully, but these errors were encountered: