From 46fe08a147ff965037634e4f50f0118d335211fb Mon Sep 17 00:00:00 2001 From: PhilPan Date: Sun, 23 Apr 2023 16:48:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8Dappsetting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Configurations/AppSetting.json | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 apihost/Tnb.API.Entry/Configurations/AppSetting.json diff --git a/apihost/Tnb.API.Entry/Configurations/AppSetting.json b/apihost/Tnb.API.Entry/Configurations/AppSetting.json new file mode 100644 index 00000000..da71e465 --- /dev/null +++ b/apihost/Tnb.API.Entry/Configurations/AppSetting.json @@ -0,0 +1,21 @@ +{ + "AppSettings": { + "InjectMiniProfiler": true, + "SupportPackageNamePrefixs": [ "Tnb" ] + }, + "Kestrel": { + "Endpoints": { + "Http": { + "Url": "http://localhost:9231" + } + } + }, + "YitId": { + "WorkerId": 1, //必须 全局唯一,必须 程序设定,理论最大值 2^WorkerIdBitLength-1 + "WorkerIdBitLength": 4, //机器码位长,决定 WorkerId 的最大值,默认值6,取值范围 [1, 16] + "SeqBitLength": 4 //序列数位长,默认值6,取值范围 [3, 21](建议不小于4),决定每毫秒基础生成的ID个数 + }, + "UnifyResultSettings": { + "ShowExceptionDetail": true + } +} \ No newline at end of file