摘要:
方式1-过滤器 1.创建异常捕获类 using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Filters; using System.Threading.Task 阅读全文
posted @ 2020-06-02 14:40
我有我奥妙
阅读(399)
评论(0)
推荐(0)
摘要:
配置 //WebAPI接口返回xml格式,由Accept.application决定 services.AddMvc(opt => { opt.RespectBrowserAcceptHeader = true; }) .AddXmlSerializerFormatters() .AddXmlDat 阅读全文
posted @ 2020-06-02 14:26
我有我奥妙
阅读(512)
评论(0)
推荐(1)
摘要:
文档 https://learn.microsoft.com/zh-cn/aspnet/core/fundamentals/configuration/?view=aspnetcore-10.0 配置 { "Logging": { "LogLevel": { "Default": "Informat 阅读全文
posted @ 2020-06-02 14:19
我有我奥妙
阅读(2375)
评论(0)
推荐(0)
摘要:
参考链接 https://www.cnblogs.com/wutongjun/p/11981798.html 流程 在IIS上部署 .Net Core 3.0 项目的主要流程有: 安装并启用IIS 安装AspNetCoreModuleV2 添加、配置网站 设置应用程序池 通过VS发布 阅读全文
posted @ 2020-06-02 14:03
我有我奥妙
阅读(807)
评论(0)
推荐(0)

浙公网安备 33010602011771号