Skip to content

A question about resource path processing #2348

Closed
@superDao

Description

@superDao

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

http://localhost:8087/webjars/swagger-ui/swagger-ui.css It is ok

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

微信图片_20230817133716 微信截图_20230817134218

<img width="817" alt="微信截图_20230817134218" src="微信图片_20230817134258">

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions