xiaoymin / knife4j

Knife4j is a set of Swagger2 and OpenAPI3 All-in-one enhancement solution
https://doc.xiaominfo.com
Apache License 2.0
4.09k stars 615 forks source link

支持springdoc.api-docs.path #573

Open zhouge870103 opened 1 year ago

zhouge870103 commented 1 year ago

Is your feature request related to a problem? Please describe. 最新的4.1版本设定springdoc.api-docs.path会提示文档错误

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

xiaoymin commented 1 year ago

怎么样的错误?贴个图

zhouge870103 commented 1 year ago

springdoc: api-docs: path: /sy/v3/api-docs

无标题

swagger-ui显示是正常的,doc.html无效

zhouge870103 commented 1 year ago

当前版本找到的变通做法是手动定义urls

springdoc: swagger-ui: urls:

ming0804 commented 1 year ago

同样 springdoc.api-docs.path 4.1 版本不支持

zhaobo-98 commented 1 year ago

image 这个路径如何修改自定义路径呢?

maldiniwn commented 5 months ago

当前版本找到的变通做法是手动定义urls

springdoc: swagger-ui: urls: - { name: '组创', url: '/sy/v3/api-docs/组创' }

image 不行,仍然报错

maldiniwn commented 5 months ago

knife4j-openapi3-spring-boot-starter 4.4.0版本 修改 spring-doc.api-docs.pah 后 使用 http://ip:port/doc.html 仍然有404错误 使用 http://ip:port/swagger-ui/index.html 可以访问

davidwushi1145 commented 3 months ago

@xiaoymin 我也遇到了同样的问题