|
|
@@ -6,6 +6,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
6
|
6
|
import org.springframework.cloud.gateway.config.GatewayProperties;
|
|
7
|
7
|
import org.springframework.cloud.gateway.route.RouteLocator;
|
|
8
|
8
|
import org.springframework.cloud.gateway.support.NameUtils;
|
|
|
9
|
+import org.springframework.context.annotation.Lazy;
|
|
9
|
10
|
import org.springframework.stereotype.Component;
|
|
10
|
11
|
import org.springframework.web.reactive.config.ResourceHandlerRegistry;
|
|
11
|
12
|
import org.springframework.web.reactive.config.WebFluxConfigurer;
|
|
|
@@ -24,6 +25,7 @@ public class SwaggerProvider implements SwaggerResourcesProvider, WebFluxConfigu
|
|
24
|
25
|
* Swagger2默认的url后缀
|
|
25
|
26
|
*/
|
|
26
|
27
|
public static final String SWAGGER2URL = "/v2/api-docs";
|
|
|
28
|
+
|
|
27
|
29
|
/**
|
|
28
|
30
|
* 网关路由
|
|
29
|
31
|
*/
|