update 返回时间格式修改
This commit is contained in:
@@ -26,7 +26,9 @@ namespace Ewide.Web.Core
|
|||||||
.AddMvcFilter<RequestActionFilter>()
|
.AddMvcFilter<RequestActionFilter>()
|
||||||
.AddInjectWithUnifyResult<XnRestfulResultProvider>()
|
.AddInjectWithUnifyResult<XnRestfulResultProvider>()
|
||||||
// 在管道中增加NewtonsoftJson,防止参数类型严格验证
|
// 在管道中增加NewtonsoftJson,防止参数类型严格验证
|
||||||
.AddNewtonsoftJson()
|
.AddNewtonsoftJson(options => {
|
||||||
|
options.SerializerSettings.DateFormatString = "yyyy-MM-dd HH:mm:ss";
|
||||||
|
})
|
||||||
.AddJsonOptions(options =>
|
.AddJsonOptions(options =>
|
||||||
{
|
{
|
||||||
//options.JsonSerializerOptions.DefaultBufferSize = 10_0000;//返回较大数据数据序列化时会截断,原因:默认缓冲区大小(以字节为单位)为16384。
|
//options.JsonSerializerOptions.DefaultBufferSize = 10_0000;//返回较大数据数据序列化时会截断,原因:默认缓冲区大小(以字节为单位)为16384。
|
||||||
|
|||||||
Reference in New Issue
Block a user