package cn.quantgroup.xyqb.config.swagger;


/**
 * Swagger文档框架
 * 这个第三方新版本竟然不兼容旧的服气啊 没有再用了直接干掉
 *
 */
@Deprecated
//@EnableSwagger2
//@Configuration
public class SwaggerConfig {

//    @Value("${openapi.swagger.on:false}")
////    private Boolean swaggerOn;
////
////    @Bean
////    public Docket createRestApi() {
////        return new Docket(DocumentationType.SWAGGER_2)
////                .useDefaultResponseMessages(false)
////                .enable(swaggerOn)
////                .apiInfo(apiInfo())
////                .select()
////                .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))
////                .paths(PathSelectors.any())
////                .paths(Predicates.not(PathSelectors.regex("/error.*")))
////                .build();
////    }
////
////    private ApiInfo apiInfo() {
////        return new ApiInfoBuilder()
////                .title("xyqb-user api")
////                .description("用户中心接口文档")
////                .contact(new Contact("wenchao.ren", "", "wenchao.ren@quantgroup.cn"))
////                .license("Apache License Version 2.0")
////                .licenseUrl("https://github.com/springfox/springfox/blob/master/LICENSE")
////                .version("2.0")
////                .build();
////    }

}

