摘要: using Microsoft.AspNetCore.Http; using System.Threading.Tasks; namespace Core.Api { /// <summary> /// 跨域中间件 /// </summary> public class CorsMiddleware 阅读全文
posted @ 2020-08-30 14:50 黑色老猫。 阅读(489) 评论(0) 推荐(1) 编辑
摘要: 一:使用swagger基本使用后台API 使用NuGet 包管理器下载Swashbuckle.AspNetCore 在Startup类的ConfigureServices方法里面注入服务: public void ConfigureServices(IServiceCollection servic 阅读全文
posted @ 2020-08-30 14:12 黑色老猫。 阅读(1761) 评论(0) 推荐(0) 编辑