Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sendya/spring-boot-starter-swagger2
Swagger2 on SpringBoot
https://github.com/sendya/spring-boot-starter-swagger2
Last synced: about 5 hours ago
JSON representation
Swagger2 on SpringBoot
- Host: GitHub
- URL: https://github.com/sendya/spring-boot-starter-swagger2
- Owner: sendya
- Created: 2018-12-25T12:56:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-25T12:57:54.000Z (almost 6 years ago)
- Last Synced: 2024-05-03T00:23:04.297Z (7 months ago)
- Language: Java
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Springboot api docs for Swagger2
====Overview
----项目提供标准化 `SpringBoot` 方式引入 `Swagger UI` 在线文档生成支持库
- 配置说明
```yml
spring:
boot:
# 请注意,配置项必须在 spring.boot 节点下
# 如: spring.boot.swagger2.allow = true
swagger2:
allow: true
# api 文档注解扫描路劲
base-package: com.example.web.api.controller
# 文档名称
title: DEMO-API-DOCS
# 说明
description: springboot api docs for swagger2
# 服务提供地址
service-url: http://127.0.0.1:8080
# 联系方式
contact:
# api 当前版本
version: 1.0.0
# api 提供主机
host: 127.0.0.1:8080
```- maven 私服配置例子
```xml
nexus-releases
Nexus Release Repository
http://server:port/nexus/content/repositories/releases/
nexus-snapshots
Nexus Snapshot Repository
http://server:port/nexus/content/repositories/snapshots/
```