-
-
Notifications
You must be signed in to change notification settings - Fork 589
A question about resource path processing #2348
Description
Describe the bug
webjars subdirectory resource 404 found after using springdoc
To Reproduce
spring-boot 3.1.2
springdoc-openapi-starter-webflux-ui 2.2.0
springdoc The request path was changed to match the version number
org.springdoc.webflux.ui.SwaggerResourceResolver::resolveResource -> org.springdoc.ui.AbstractSwaggerResourceResolver::findWebJarResourcePath
swagger-ui/index.html -> swagger-ui\5.2.0\index.html
<img width="817" alt="微信截图_20230817134218" src="
">
Other Jar resources
http://localhost:8087/webjars/aa/bb.html 404
aa/bb.html -> aa/5.2.0/bb.html
It is recommended that the path starting with swagger-ui be processed