@@ -0,0 +1,1439 @@
+package com.lance.springfox.common;%0A%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.Configuration;%0A%0Aimport com.google.common.base.Predicate;%0Aimport com.google.common.base.Predicates;%0A%0Aimport springfox.documentation.builders.ApiInfoBuilder;%0Aimport springfox.documentation.builders.PathSelectors;%0Aimport springfox.documentation.service.ApiInfo;%0Aimport springfox.documentation.service.Contact;%0Aimport springfox.documentation.spi.DocumentationType;%0Aimport springfox.documentation.spring.web.plugins.Docket;%0Aimport springfox.documentation.swagger2.annotations.EnableSwagger2;%0A%0A@Configuration  %0A@EnableSwagger2%0Apublic class SwaggerConfig %7B%0A%09%0A%09@Bean%0A%09public Docket adminApi()%7B%0A%09%09return new Docket(DocumentationType.SWAGGER_2)%0A%09%09%09%09.groupName(%22Admin API%22)%0A%09%09%09%09.forCodeGeneration(true)%0A%09%09%09%09.pathMapping(%22/%22)%0A%09%09%09%09.select()%0A%09%09%09%09.paths(paths())%0A%09%09%09%09.build()%0A%09%09%09%09.apiInfo(apiInfo())%0A%09%09%09%09.useDefaultResponseMessages(false);%0A%09%7D%0A%09%0A%09private Predicate%3CString%3E paths()%7B%0A%09%09return Predicates.and(PathSelectors.regex(%22/.*%22), Predicates.not(PathSelectors.regex(%22/error%22)));%0A%09%7D%0A%09%0A%09%0A%09private ApiInfo apiInfo()%7B%0A%09%09Contact contact = new Contact(%22lance%22, %22https://github.com/leelance%22, %2281222045@qq.com%22);%0A%09%09return new ApiInfoBuilder()%0A%09%09%09%09.title(%22Document Api%22)%0A%09%09%09%09.description(%22Spring-boot-Springfox Example%22)%0A%09%09%09%09.license(%22Apache License Version 2.0%22)%0A%09%09%09%09.contact(contact)%0A%09%09%09%09.version(%222.0%22)%0A%09%09%09%09.build();%0A%09%7D%0A%7D%0A

add swagger config