Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc87112 committed Aug 9, 2017
1 parent ac172ce commit 2bb1e41
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/didispace/swagger/EnableSwagger2Doc.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

/**
* @author 翟永超
* @create 2017/8/7.
* @blog http://blog.didispace.com
* Create date :2017/8/7.
* My blog http://blog.didispace.com
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

/**
* @author 翟永超
* @create 2017/8/7.
* @blog http://blog.didispace.com
* Create date :2017/8/7.
* My blog http://blog.didispace.com
*/
@Configuration
public class SwaggerAutoConfiguration {
Expand All @@ -45,9 +45,9 @@ public Docket createRestApi(SwaggerProperties swaggerProperties) {
.build();

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

List<Predicate<String>> basePath = new ArrayList();
for(String path : swaggerProperties.getBasePath()) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/didispace/swagger/SwaggerProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

/**
* @author 翟永超
* @create 2017/8/7.
* @blog http://blog.didispace.com
* Create date :2017/8/7.
* My blog http://blog.didispace.com
*/
@Data
@ConfigurationProperties("swagger")
Expand Down

0 comments on commit 2bb1e41

Please sign in to comment.