去掉long类型特殊json序列化

zw
lxw 6 months ago
parent 84680f8cc1
commit e9f8984d56

@ -73,7 +73,7 @@ if (redisConnectionString != null && instanceName != null)
builder.Services.AddControllers().AddJsonOptions(configure => builder.Services.AddControllers().AddJsonOptions(configure =>
{ {
configure.JsonSerializerOptions.Converters.Add(new DatetimeJsonConverter()); configure.JsonSerializerOptions.Converters.Add(new DatetimeJsonConverter());
configure.JsonSerializerOptions.Converters.Add(new LongJsonConverter()); // configure.JsonSerializerOptions.Converters.Add(new LongJsonConverter());
}); });
builder.Services.AddControllers(); builder.Services.AddControllers();

Loading…
Cancel
Save