|
|
|
@ -4,6 +4,7 @@ package com.glxp.api.config;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
import org.springframework.context.annotation.Profile;
|
|
|
|
|
import springfox.documentation.builders.ApiInfoBuilder;
|
|
|
|
|
import springfox.documentation.builders.PathSelectors;
|
|
|
|
|
import springfox.documentation.builders.RequestHandlerSelectors;
|
|
|
|
@ -11,6 +12,7 @@ import springfox.documentation.spi.DocumentationType;
|
|
|
|
|
import springfox.documentation.spring.web.plugins.Docket;
|
|
|
|
|
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;
|
|
|
|
|
|
|
|
|
|
@Profile({"dev","test"})
|
|
|
|
|
@Configuration
|
|
|
|
|
@EnableSwagger2WebMvc
|
|
|
|
|
public class Knife4jConfiguration {
|
|
|
|
|