| | |
| | | .host(host) |
| | | .enable(enabled) |
| | | .select() |
| | | .apis( basePackage("com.doumee.business;com.doumee.system")) |
| | | .apis( basePackage("com.doumee.api.business;com.doumee.api.system")) |
| | | // 设置需要被扫描的类,这里设置为添加了@Api注解的类 |
| | | // .apis(RequestHandlerSelectors.withClassAnnotation(Api.class)) |
| | | .paths(PathSelectors.any()) |
| | |
| | | @Bean |
| | | public Docket getDocket1() { |
| | | return new Docket(DocumentationType.SWAGGER_2) |
| | | .apiInfo(this.getApiInfo()).groupName("公共接口") |
| | | .apiInfo(this.getApiInfo()).groupName("公共业务接口") |
| | | .host(host) |
| | | .enable(enabled) |
| | | .select() |
| | | .apis( basePackage("com.doumee.common")) |
| | | .apis( basePackage("com.doumee.api.common")) |
| | | // 设置需要被扫描的类,这里设置为添加了@Api注解的类 |
| | | // .apis(RequestHandlerSelectors.withClassAnnotation(Api.class)) |
| | | .paths(PathSelectors.any()) |