Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

knife4j在网关集成和swaggerui只能有一个 #872

Open
chenlong1728717074 opened this issue Dec 12, 2024 · 0 comments
Open

knife4j在网关集成和swaggerui只能有一个 #872

chenlong1728717074 opened this issue Dec 12, 2024 · 0 comments

Comments

@chenlong1728717074
Copy link

com.github.xiaoymin:knife4j-gateway-spring-boot-starter:4.4.0

knife4j:
enable: true
gateway:
enabled: true
tags-sorter: order
operations-sorter: order
strategy: manual
routes:
- name: 商城服务
url: /mall/v3/api-docs
service-name: tongyun-mall
context-path: /mall
order: 1

springdoc:
api-docs:
enabled: true
swagger-ui:
enabled: true #此处打开则/doc.html的服务菜单不出来
path: /swagger-ui.html
doc-expansion: none
persist-authorization: true
以上配置: springdoc: swagger-ui:enabled: true 的时候能进doc.html但是没有服务
image
springdoc: swagger-ui:enabled: false 才有,但是我需要swagger-ui和doc.html都有

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant