|  |  | 
 |  |  |  | 
 |  |  |     @Value("${swagger.host:}") | 
 |  |  |     private String host; | 
 |  |  |     @Value("${swagger.enabled:}") | 
 |  |  |     private Boolean enabled; | 
 |  |  |  | 
 |  |  |     @Value("${swagger.title:接口文档}") | 
 |  |  |     private String title; | 
 |  |  | 
 |  |  |         return new Docket(DocumentationType.SWAGGER_2) | 
 |  |  |                 .apiInfo(this.getApiInfo()).groupName("default") | 
 |  |  |                 .host(host) | 
 |  |  |                 .enable(enabled) | 
 |  |  |                 .select() | 
 |  |  |                 .apis( basePackage("com.doumee.api.cloud")) | 
 |  |  |                 .apis( basePackage("com.doumee.cloud;com.doumee.api.common")) | 
 |  |  |                 // 设置需要被扫描的类,这里设置为添加了@Api注解的类 | 
 |  |  | //                .apis(RequestHandlerSelectors.withClassAnnotation(Api.class)) | 
 |  |  |                 .paths(PathSelectors.any()) |