config swagger UI !prod

main
wangqing 11 months ago
parent 5dc30b41cf
commit 61b8366a7d

@ -4,6 +4,7 @@ import org.springframework.context.annotation.Configuration;
import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI;
import org.springframework.context.annotation.Profile;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import swagger.BaseSwaggerConfig;
import swagger.SwaggerProperties;
@ -11,6 +12,7 @@ import swagger.SwaggerProperties;
@Configuration
@EnableSwagger2
@EnableSwaggerBootstrapUI
@Profile("!prod")
public class SwaggerConfig extends BaseSwaggerConfig {
@Override

@ -4,6 +4,7 @@ import org.springframework.context.annotation.Configuration;
import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI;
import org.springframework.context.annotation.Profile;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import swagger.BaseSwaggerConfig;
import swagger.SwaggerProperties;
@ -11,6 +12,7 @@ import swagger.SwaggerProperties;
@Configuration
@EnableSwagger2
@EnableSwaggerBootstrapUI
@Profile("!prod")
public class SwaggerConfig extends BaseSwaggerConfig {
@Override

@ -4,6 +4,7 @@ import org.springframework.context.annotation.Configuration;
import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI;
import org.springframework.context.annotation.Profile;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import swagger.BaseSwaggerConfig;
import swagger.SwaggerProperties;
@ -11,6 +12,7 @@ import swagger.SwaggerProperties;
@Configuration
@EnableSwagger2
@EnableSwaggerBootstrapUI
@Profile("!prod")
public class SwaggerConfig extends BaseSwaggerConfig {
@Override

@ -4,6 +4,7 @@ import org.springframework.context.annotation.Configuration;
import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI;
import org.springframework.context.annotation.Profile;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import swagger.BaseSwaggerConfig;
import swagger.SwaggerProperties;
@ -11,6 +12,7 @@ import swagger.SwaggerProperties;
@Configuration
@EnableSwagger2
@EnableSwaggerBootstrapUI
@Profile("!prod")
public class SwaggerConfig extends BaseSwaggerConfig {
@Override

Loading…
Cancel
Save