{ //这里注意,以前是ReRoutes现在是Routes "Routes": [ { "DownstreamPathTemplate": "/WmsMainAPI/swagger.json", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 3000 } ], "UpstreamPathTemplate": "/WmsMainAPI/swagger.json", "UpstreamHttpMethod": [ "Get", "Post" ] }, { "DownstreamPathTemplate": "/mainApi/{url}", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 3000 } ], "UpstreamPathTemplate": "/mainApi/{url}", "UpstreamHttpMethod": [ "Get", "Post" ], "LoadBalancerOptions": { "Type": "RoundRobin" } } ], "GlobalConfiguration": { "BaseUrl": "http://localhost:3008", "RateLimitOptions": { "DisableRateLimitHeaders": false, "QuotaExceededMessage": "Too many requests, are you OK?", "HttpStatusCode": 999, "ClientIdHeader": "client_id" } } }