.net core post自带的json序列化转换出错 post参数为null
2021-02-11 19:19
标签:bsp net col ima core code ddn null oop 使用NewtonsoftJson 安装 Microsoft.AspNetCore.Mvc.NewtonsoftJson Startup.ConfigureServices配置 .net core post自带的json序列化转换出错 post参数为null 标签:bsp net col ima core code ddn null oop 原文地址:https://www.cnblogs.com/GarsonZhang/p/13036908.html //配置Mvc + json 序列化
services.AddMvc(options => { options.EnableEndpointRouting = false; })
.SetCompatibilityVersion(CompatibilityVersion.Version_3_0)
.AddNewtonsoftJson(options =>
{
options.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore;
options.SerializerSettings.DateFormatString = "yyyy-MM-dd HH:mm";
});
文章标题:.net core post自带的json序列化转换出错 post参数为null
文章链接:http://soscw.com/index.php/essay/54142.html