南骏 池
2025-08-30 f4e84a98facb28bbfc63343c81095a9787812e27
Startup.cs
@@ -30,11 +30,15 @@
        services.Configure<AppSettings>(
            Configuration.GetSection("AppSettings"));
        // 添加服务注册,请求头信息传递。
        services.AddHttpContextAccessor();
        services.AddScoped<RequestInfo>();
        services.AddSwaggerGen(c =>
        {
            c.SwaggerDoc("v1",
                new OpenApiInfo
                    { Title = "PadApplication.Api", Version = "v1" });
                    { Title = "NewPdaSqlServer.Api", Version = "v1" });
            var xmlFile =
                $"{Assembly.GetExecutingAssembly().GetName().Name}.xml";
            var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile);