摘要: 1 添加服务类 WebServiceHost using System.ServiceModel; using System.ServiceModel.Web; using System.Web.Services.Protocols; [ServiceContract(Namespace = "ht 阅读全文
posted @ 2024-03-07 18:14 永恒921 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1 从NUGET添加组件“Swashbuckle.AspNetCore” 相关使用代码 var builder = WebApplication.CreateBuilder(); builder.Services.AddControllers(); var app = builder.Build() 阅读全文
posted @ 2024-03-07 17:37 永恒921 阅读(341) 评论(0) 推荐(0) 编辑