# microservice.abp **Repository Path**: nzyGetHub/microservice.abp ## Basic Information - **Project Name**: microservice.abp - **Description**: 基于abp框架的微服务项目 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-01-19 - **Last Updated**: 2025-07-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ProductService appsettings.json ``` { "ConnectionStrings": { "ProductConnection": "Server=localhost;Database=AbpTest;User ID=root;Password=123456;Port=3306;" }, "ServiceRegistry": { "ConsulAddress": "http://localhost:8500", "ServiceAddress": "http://localhost:7002", "ServiceName": "ProductService", "HealthCheckAddress": "/HealthCheck" } } ``` Ocelot appsetting.json ``` { "Routes": [ { "DownstreamPathTemplate": "/api/product/{everything}", "ServiceName": "ProductService", "UpstreamPathTemplate": "/api/v1/product/{everything}", "UpstreamHttpMethod": [ "GET", "POST", "PUT", "DELETE" ], "LoadBalancerOptions": { "Type": "RoundRobin" }, "RateLimitOptions": { "ClientWhitelist": [], "EnableRateLimiting": true, "Period": "2s", "PeriodTimespan": 2, "Limit": 1000 }, "QoSOptions": { "ExceptionsAllowedBeforeBreaking": 1, "DurationOfBreak": 10000, "TimeoutValue": 5000 }, "FileCacheOptions": { "TtlSeconds": 1000, "Region": "ProductService" } } ], "GlobalConfiguration": { "BaseUrl": "http://localhost:5000", "ServiceDiscoveryProvider": { "Scheme": "http", "Host": "localhost", "Port": 8500, "Type": "Consul" }, "Logging": { "LogLevel": { "Default": "Information", "Microsoft.AspNetCore": "Warning" } } } } ```