| | |
| | | public class SwaggerConfig { |
| | | @Bean |
| | | public Docket createRestApi() { |
| | | return new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo()).select() |
| | | .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class)) |
| | | .apis(RequestHandlerSelectors.basePackage("com.panzhihua")).paths(PathSelectors.any()).build(); |
| | | return new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo()).enable(true).select() |
| | | // .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class)) |
| | | .apis(RequestHandlerSelectors.basePackage("com.panzhihua.applets")).build(); |
| | | } |
| | | |
| | | private ApiInfo apiInfo() { |