File tree Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Expand file tree Collapse file tree 2 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 1313
1414# 版本基础
1515
16- - Spring Boot:1.5.x
17- - Swagger:2.9.x
16+ - Swagger:2.9.2
1817
1918# 如何使用
2019
2120在该项目的帮助下,我们的Spring Boot可以轻松的引入swagger2,主需要做下面两个步骤:
2221
2322- 在` pom.xml ` 中引入依赖:
2423
25- > 当前最新版本 1.7.1.RELEASE
26-
2724``` xml
2825<dependency >
2926 <groupId >com.spring4all</groupId >
3027 <artifactId >swagger-spring-boot-starter</artifactId >
31- <version >1.7.1 .RELEASE</version >
28+ <version >1.8.0 .RELEASE</version >
3229</dependency >
3330```
3431
Original file line number Diff line number Diff line change 66
77 <groupId >com.spring4all</groupId >
88 <artifactId >swagger-spring-boot-starter</artifactId >
9- <version >1.7.1 .RELEASE</version >
9+ <version >1.8.0 .RELEASE</version >
1010
1111 <name >spring-boot-starter-swagger</name >
1212 <url >https://github.com/SpringForAll/spring-boot-starter-swagger</url >
4848 <properties >
4949 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
5050 <version .java>1.8</version .java>
51- <version .swagger>2.9.0 </version .swagger>
51+ <version .swagger>2.9.2 </version .swagger>
5252 <version .spring-boot>1.5.10.RELEASE</version .spring-boot>
5353 <version .lombok>1.16.18</version .lombok>
5454 </properties >
6464 <artifactId >spring-boot-configuration-processor</artifactId >
6565 <optional >true</optional >
6666 </dependency >
67+ <dependency >
68+ <groupId >org.springframework.boot</groupId >
69+ <artifactId >spring-boot-starter-web</artifactId >
70+ <optional >true</optional >
71+ </dependency >
6772 <dependency >
6873 <groupId >io.springfox</groupId >
6974 <artifactId >springfox-swagger-ui</artifactId >
8590 <version >${version.lombok} </version >
8691 <scope >provided</scope >
8792 </dependency >
88- <dependency >
89- <groupId >org.springframework.boot</groupId >
90- <artifactId >spring-boot-starter-web</artifactId >
91- <optional >true</optional >
92- </dependency >
9393 </dependencies >
9494
9595 <dependencyManagement >
You can’t perform that action at this time.
0 commit comments