|
@@ -17,7 +17,7 @@ import java.util.ArrayList;
|
|
import java.util.Collections;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
-@Configuration
|
|
|
|
|
|
+//@Configuration
|
|
public class OpenApiConfig {
|
|
public class OpenApiConfig {
|
|
|
|
|
|
private final RouteDefinitionLocator routeDefinitionLocator;
|
|
private final RouteDefinitionLocator routeDefinitionLocator;
|
|
@@ -32,7 +32,7 @@ public class OpenApiConfig {
|
|
/**
|
|
/**
|
|
* 配置API文档基本信息,包含全局请求头
|
|
* 配置API文档基本信息,包含全局请求头
|
|
*/
|
|
*/
|
|
- @Bean
|
|
|
|
|
|
+ // @Bean
|
|
public OpenAPI customOpenAPI() {
|
|
public OpenAPI customOpenAPI() {
|
|
// 1. 定义自定义请求头的安全方案
|
|
// 1. 定义自定义请求头的安全方案
|
|
SecurityScheme customHeaderScheme = new SecurityScheme()
|
|
SecurityScheme customHeaderScheme = new SecurityScheme()
|
|
@@ -62,8 +62,8 @@ public class OpenApiConfig {
|
|
/**
|
|
/**
|
|
* 聚合各微服务的API文档
|
|
* 聚合各微服务的API文档
|
|
*/
|
|
*/
|
|
- @Bean
|
|
|
|
- @Lazy(false)
|
|
|
|
|
|
+ // @Bean
|
|
|
|
+ // @Lazy(false)
|
|
public List<GroupedOpenApi> apis(SwaggerUiConfigParameters swaggerUiConfigParameters) {
|
|
public List<GroupedOpenApi> apis(SwaggerUiConfigParameters swaggerUiConfigParameters) {
|
|
List<GroupedOpenApi> groups = new ArrayList<>();
|
|
List<GroupedOpenApi> groups = new ArrayList<>();
|
|
|
|
|