摘要: 1、新建 ApiVersionInfo.cs 版本文件; /// <summary> /// API版本 /// </summary> public class ApiVersionInfo { public static string 接口版本1; } 右键编辑项目文件; <PropertyGro 阅读全文
posted @ 2024-01-17 18:26 应世玉 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 1、nuget安装microsoft.aspnetcore.cors 2、program.cs文件中 using System.Reflection; using Microsoft.OpenApi.Models; var builder = WebApplication.CreateBuilder 阅读全文
posted @ 2024-01-17 18:15 应世玉 阅读(176) 评论(0) 推荐(0) 编辑