Skip to content

Commit 2bb1e41

Browse files
committed
update
1 parent ac172ce commit 2bb1e41

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/main/java/com/didispace/swagger/EnableSwagger2Doc.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
/**
99
* @author 翟永超
10-
* @create 2017/8/7.
11-
* @blog http://blog.didispace.com
10+
* Create date :2017/8/7.
11+
* My blog http://blog.didispace.com
1212
*/
1313
@Target({ElementType.TYPE})
1414
@Retention(RetentionPolicy.RUNTIME)

src/main/java/com/didispace/swagger/SwaggerAutoConfiguration.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
/**
1919
* @author 翟永超
20-
* @create 2017/8/7.
21-
* @blog http://blog.didispace.com
20+
* Create date :2017/8/7.
21+
* My blog http://blog.didispace.com
2222
*/
2323
@Configuration
2424
public class SwaggerAutoConfiguration {
@@ -45,9 +45,9 @@ public Docket createRestApi(SwaggerProperties swaggerProperties) {
4545
.build();
4646

4747
// 当没有配置任何path的时候,解析/**
48-
if(swaggerProperties.getBasePath().isEmpty()) {
49-
swaggerProperties.getBasePath().add("/**");
50-
}
48+
// if(swaggerProperties.getBasePath().isEmpty()) {
49+
// swaggerProperties.getBasePath().add("/**");
50+
// }
5151

5252
List<Predicate<String>> basePath = new ArrayList();
5353
for(String path : swaggerProperties.getBasePath()) {

src/main/java/com/didispace/swagger/SwaggerProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
/**
1111
* @author 翟永超
12-
* @create 2017/8/7.
13-
* @blog http://blog.didispace.com
12+
* Create date :2017/8/7.
13+
* My blog http://blog.didispace.com
1414
*/
1515
@Data
1616
@ConfigurationProperties("swagger")

0 commit comments

Comments
 (0)