Spring Boot 使用 springdoc-openapi 接入 Swagger2

Spring Boot Swagger About 429 words

添加依赖

<dependency>
    <groupId>org.springdoc</groupId>
    <artifactId>springdoc-openapi-ui</artifactId>
    <version>1.6.8</version>
</dependency>

访问地址

Spring Boot监听了8080端口。

http://localhost:8080/swagger-ui/index.html

http://localhost:8080/v3/api-docs

生产环境关闭

springdoc:
  swagger-ui:
    enabled: false
  api-docs:
    enabled: false

GitHub

https://github.com/springdoc/springdoc

Views: 1,623 · Posted: 2022-09-25

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh