@@ -0,0 +1,1820 @@
+package com.nicefish.swagger;%0A%0A%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.Configuration;%0Aimport springfox.documentation.builders.ApiInfoBuilder;%0Aimport springfox.documentation.builders.RequestHandlerSelectors;%0Aimport springfox.documentation.service.ApiInfo;%0Aimport springfox.documentation.spi.DocumentationType;%0Aimport springfox.documentation.spring.web.plugins.Docket;%0Aimport springfox.documentation.swagger2.annotations.EnableSwagger2;%0A%0Aimport static springfox.documentation.builders.PathSelectors.regex;%0A%0A/**%0A * %E4%BD%BF%E7%94%A8%E6%B3%A8%E8%A7%A3%E7%9A%84%E6%96%B9%E5%BC%8F%E6%9D%A5%E6%89%AB%E6%8F%8FAPI%0A * %3Cp/%3E%0A * %3Cp%3E @author sunye%0A * %3Cp/%3E%0A * %3Cp%3E @date 2017%E5%B9%B46%E6%9C%8826%E6%97%A5 %E4%B8%8B%E5%8D%881:18:48%0A * %3Cp%3E @version 0.0.1%0A */%0A@EnableSwagger2%0A@Configuration%0Apublic class SpringfoxConfig %7B%0A%0A%0A    @Bean%0A    public Docket swaggerSpringMvcPlugin() %7B%0A        return new Docket(DocumentationType.SWAGGER_2)%0A                .select()%0A                .apis(RequestHandlerSelectors.any())%0A                .paths(regex(%22/.*%22))%0A                .build()%0A                .pathMapping(%22/%22)%0A                .apiInfo(metadata());%0A    %7D%0A%0A%0A    /*@Bean%0A    public Docket documentation() %7B%0A        return new Docket(DocumentationType.SWAGGER_2)%0A                //.groupName(%22nicefish%22)%0A                .select()%0A                .apis(RequestHandlerSelectors.any())%0A                .paths(regex(%22/.*%22))%0A                .build()%0A                .pathMapping(%22/%22)%0A                .apiInfo(metadata());%0A    %7D%0A%0A    *//*@Bean%0A    public UiConfiguration uiConfig() %7B%0A        return UiConfiguration.DEFAULT;%0A    %7D*//*%0A%0A    */%0A    private ApiInfo metadata() %7B%0A        return new ApiInfoBuilder()%0A                .title(%22nicefish API%22)%0A                .description(%22Some description%22)%0A                .version(%221.0%22)%0A                .contact(%22317484255@qq.com%22)%0A                .build();%0A    %7D%0A%7D

add swagger