Skip to content

Commit 5e78362

Browse files
committed
update
1 parent 2bb1e41 commit 5e78362

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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()) {

0 commit comments

Comments
 (0)