From 9eb94e9eec2e2e164698e34d0481d66093c8655b Mon Sep 17 00:00:00 2001 From: Shuxia Ning <NingShuxia0927@outlook.com> Date: 星期三, 15 一月 2025 17:40:55 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/HStation/XHS.V1.0 --- WebApi/HStation.WebApi.Xhs.Core/Startup.cs | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/WebApi/HStation.WebApi.Xhs.Core/Startup.cs b/WebApi/HStation.WebApi.Xhs.Core/Startup.cs index 2986481..2e5da1a 100644 --- a/WebApi/HStation.WebApi.Xhs.Core/Startup.cs +++ b/WebApi/HStation.WebApi.Xhs.Core/Startup.cs @@ -11,6 +11,7 @@ using Microsoft.Extensions.Hosting; using SqlSugar; using System.Text.Json.Serialization; +using Yw; using Yw.Application; namespace HStation.WebApi @@ -26,23 +27,30 @@ /// </summary> public void ConfigureServices(IServiceCollection services) { + LogHelper.Debug("1"); services.AddConfigurableOptions<Yw.JWT.JWTSettingsOptions>(); - + LogHelper.Debug("2"); services.Configure<KestrelServerOptions>(options => { options.Limits.MaxRequestBodySize = int.MaxValue; + options.Limits.MaxRequestBufferSize = int.MaxValue; + options.Limits.MaxResponseBufferSize = int.MaxValue; }); + LogHelper.Debug("3"); services.Configure<IISServerOptions>(options => { options.MaxRequestBodySize = int.MaxValue; + options.MaxRequestBodyBufferSize = int.MaxValue; }); - + LogHelper.Debug("4"); services.AddJwt<JwtHandler>(enableGlobalAuthorize: true); + LogHelper.Debug("5"); //// 鎷︽埅鍣� services.AddMvcFilter<AuthorizationFilter>(); services.AddMvcFilter<ActionFilter>(); services.AddMvcFilter<ResultFilter>(); + LogHelper.Debug("6"); //闇�鍦� services.AddControllers() 涔嬪墠娉ㄥ唽 services.AddCorsAccessor(); @@ -77,7 +85,9 @@ }); // 娣诲姞鍗虫椂閫氳 services.AddSignalR(); + LogHelper.Debug("7"); SnowFlakeSingle.WorkId = Yw.Settings.SqlSugarParasHelper.SqlSugar.SnowFlakeWorkId; + LogHelper.Debug("娴嬭瘯service"); } /// <summary> @@ -85,6 +95,7 @@ /// </summary> public void Configure(IApplicationBuilder app, IWebHostEnvironment env) { + LogHelper.Debug("0"); if (env.IsDevelopment()) { app.UseDeveloperExceptionPage(); -- Gitblit v1.9.3