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
Views: 2,093 · Posted: 2022-09-25
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb/LiteNote扫描下方二维码关注公众号和小程序↓↓↓
Loading...