摘要:
添加程序集:System.Text.Json using System.Text.Json; using System.Text.Json.Serialization; 响应时间格式,中文乱码,响应驼峰命名 services.AddControllers(x=> { //x.Filters.Add( 阅读全文
posted @ 2020-05-19 23:55
wfpanskxin
阅读(688)
评论(0)
推荐(0)
摘要:
public static class HttpContext { private static IHttpContextAccessor _accessor; public static Microsoft.AspNetCore.Http.HttpContext Current => _acces 阅读全文
posted @ 2020-05-19 23:43
wfpanskxin
阅读(815)
评论(0)
推荐(0)
摘要:
netcore2.0和3.0还是有很大的差异使用时请多注意: 前提netcore3.0 默认不支持同步方法:ReadToEnd() : 使用时需要在Startup中添加: //默认不支持同步方法:ReadToEnd() services.Configure<KestrelServerOptions> 阅读全文
posted @ 2020-05-19 23:40
wfpanskxin
阅读(1756)
评论(0)
推荐(1)
摘要:
文件=》另存为=》保存三角=》编码保存 阅读全文
posted @ 2020-05-19 17:31
wfpanskxin
阅读(542)
评论(0)
推荐(0)
摘要:
一、System.Text.Json 引用: using System.Text.Encodings.Web; using System.Text.Json; using System.Text.Unicode; services.AddJsonOptions(options => { //格式化日 阅读全文
posted @ 2020-05-19 16:49
wfpanskxin
阅读(671)
评论(0)
推荐(0)

浙公网安备 33010602011771号