ubuntu

Ubuntu Swagger的文档在哪里找

小樊
34
2025-12-29 21:57:45
栏目: 智能运维

Ubuntu 上 Swagger 文档的查找与访问

常见定位方式

快速自检步骤

常见安装与访问对照

方式 启动命令或路径 默认访问地址
Docker(swaggerapi/swagger-ui-express) docker run -p 8080:8080 swaggerapi/swagger-ui-express http://localhost:8080
Node.js + swagger-ui-express app.use(‘/api-docs’, swaggerUi.serve, swaggerUi.setup(doc)); http://localhost:3000/api-docs
本机 Swagger Editor git clone … && npm start http://localhost:8080
Spring Boot(springfox) 启动应用后内置页面 http://localhost:8080/swagger-ui.html
Nginx 反向代理示例 将 /swagger-ui.html 代理到 8080 http://your-domain.com/swagger-ui.html
以上地址与路径为常见默认值,具体以你的项目配置为准。

0
看了该问题的人还看了