Swagger-Spring-Boot-Starter 帮助你集成通用 [Swagger]到 Spring Boot。
Swagger-Spring-Boot-Starter will help you use [Swagger] with Spring Boot.
How to use
maven
在pom.xml加入nexus资源库(解决中国访问慢的问题,已经加入中央仓库)
Add the following nexus repository(fix china access slow problem,already append to central nexus.) to your pom.xml:
<repositories>
<repository>
<id>nexus</id>
<name>nexus</name>
<url>http://maven.cuisongliu.com/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
在pom.xml加入依赖
Add the following dependency to your pom.xml:
<dependency>
<groupId>com.cuisongliu</groupId>
<artifactId>swagger-spring-boot-starter</artifactId>
<version>1.1</version>
</dependency>
gradle
在build.gradle加入nexus资源库(解决中国访问慢的问题,已经加入中央仓库)
Add the following nexus repository(fix china access slow problem,already append to central nexus.) to your build.gradle:
allprojects {
repositories {
mavenLocal()
maven { url "http://maven.cuisongliu.com/content/groups/public" }
mavenCentral()
jcenter()
}
}
在build.gradle加入依赖
Add the following dependency to your build.gradle:
compile "com.cuisongliu:swagger-spring-boot-starter:1+"
Example
swagger:
version: 1.2