@EnableSwagger2
@Profile({"local","dev","release"})
@Configuration
public class SwaggerConfig {/**
* @return a
*/
@Bean
public Docket api(){returnnewDocket(DocumentationType.SWAGGER_2).apiInfo(apiInfo()).select().apis(RequestHandlerSelectors.basePackage("com.xx.xx.xx.controller")).paths(PathSelectors.any()).build().forCodeGeneration(false);}/**
* @return a
*/
private ApiInfo apiInfo(){returnnewApiInfoBuilder().title("标题").contact("作者").version("1.0").description("描述").build();}}