appsettings.json 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595
  1. {
  2. /* Sers微服务配置 */
  3. "Sers": {
  4. /* 通讯层配置 */
  5. "CL": {
  6. /* 共用配置,子项共用,覆写子项未指定的配置 */
  7. "Config": {
  8. "workThread": {
  9. // 模式,可为 LongThread(默认)、LongThread_TimeLimit、ManagedThread、ConsumerCascade
  10. "mode": "LongThread",
  11. /* 后台处理消息的线程个数(单位个,默认2) */
  12. "threadCount": 2,
  13. /* 最大线程数(包含常驻线程和临时线程),默认100。仅当mode为ManagedThread时有效 */
  14. "maxThreadCount": 100,
  15. /* 等待队列的最大长度(默认:100000)。仅当mode为LongThread_TimeLimit和ManagedThread时有效 */
  16. "pendingQueueLength": 100000,
  17. /* 超时时间(单位ms,默认300000),仅当mode为LongThread_TimeLimit、ManagedThread时有效 */
  18. "timeoutMs": 300000
  19. },
  20. /* 请求超时时间(单位ms,默认300000) */
  21. "requestTimeoutMs": 300000,
  22. //HeartBeat
  23. /* 心跳检测时间间隔(单位ms,默认10000,若指定为0则不进行心跳检测) */
  24. "heartBeatIntervalMs": 10000,
  25. /* 心跳检测超时时间(单位ms,默认30000) */
  26. "heartBeatTimeoutMs": 30000,
  27. /* 心跳检测失败重试次数(单位次,默认10) */
  28. "heartBeatRetryCount": 10,
  29. /* 数据传输 加密协议,可多个,可不指定 */
  30. "//security": [
  31. {
  32. // SampleSecurity
  33. /* 在此Assembly中查找security */
  34. "assemblyFile": "Sers.Core.dll",
  35. /* the class of security in assemblyFile. 必须继承接口 Sers.Core.Util.StreamSecurity.ISecurity */
  36. "className": "Sers.Core.Util.StreamSecurity.Security.SampleSecurity",
  37. /* (x.2) config */
  38. /* 加密密钥 */
  39. "secret": "security"
  40. },
  41. {
  42. // SampleSecurity
  43. /* 若不指定assemblyFile和className 则默认为Sers.Core.Util.StreamSecurity.Security.SampleSecurity */
  44. "secret": "Two layer encryption"
  45. }
  46. ],
  47. /* 连接秘钥,用以验证连接安全性。服务端和客户端必须一致 */
  48. "secretKey": "SersCL"
  49. },
  50. /* one conn is one channel.can be multiable */
  51. "Client": [
  52. {
  53. // Ipc.NamedPipe
  54. /* (x.1) type */
  55. /* 在此Assembly中查找builder */
  56. "assemblyFile": "Sers.CL.Ipc.NamedPipe.dll",
  57. /* the class of builder in assemblyFile */
  58. //"className": "Sers.CL.Ipc.NamedPipe.OrganizeClientBuilder",
  59. /* (x.2) config */
  60. // 命名管道只支持本机或局域网。
  61. /* 服务端机器名或者ip地址(如 103.23.23.23 、win10f),默认 "." */
  62. "serverName": ".",
  63. /* 命名管道名称。例如: "Sers.CL.Ipc" */
  64. "pipeName": "Sers.CL.Ipc.4501"
  65. },
  66. {
  67. // Socket.Iocp
  68. /* (x.1) type - Iocp */
  69. /* 在此Assembly中查找builder */
  70. //"assemblyFile": "Sers.CL.Socket.Iocp.dll",
  71. /* the class of builder in assemblyFile */
  72. "className": "Sers.CL.Socket.Iocp.OrganizeClientBuilder",
  73. /* 通信模式(默认值:Simple)。可为 Simple、Timer、ThreadWait */
  74. //"mode": "ThreadWait",
  75. /* 接收缓存区大小(单位:byte,默认:8192) */
  76. //"receiveBufferSize": 8192,
  77. /* 发送缓冲区刷新间隔(单位:毫秒,默认:1)(仅当mode为Timer和ThreadWait时有效) */
  78. //"sendFlushInterval": 1,
  79. /* 发送缓冲区数据块的最小大小(单位:byte,默认 1000000)(仅当mode为Timer和ThreadWait时有效) */
  80. //"sendBufferSize": 1000000,
  81. /* 发送缓冲区个数(默认1024)(仅当mode为Timer和ThreadWait时有效) */
  82. //"sendBufferCount": 1024,
  83. /* (x.2) config */
  84. /* 服务端 host地址。例如: "127.0.0.1"、"sers.cloud" */
  85. "host": "127.0.0.1",
  86. /* 服务端 监听端口号。例如: 4501 */
  87. "port": 4501
  88. },
  89. {
  90. // Socket.ThreadWait
  91. /* (x.1) type - ThreadWait */
  92. /* the class of builder in assemblyFile */
  93. //"className": "Sers.CL.Socket.ThreadWait.OrganizeClientBuilder",
  94. /* (x.2) config */
  95. /* 服务端 host地址。例如: "127.0.0.1"、"sers.cloud" */
  96. "host": "127.0.0.1",
  97. /* 服务端 监听端口号。例如: 4501 */
  98. "port": 4501
  99. },
  100. {
  101. // Zmq.ThreadWait
  102. /* (x.1) type */
  103. /* 在此Assembly中查找builder */
  104. "assemblyFile": "Sers.CL.ClrZmq.ThreadWait.dll",
  105. /* the class of builder in assemblyFile */
  106. //"className": "Sers.CL.ClrZmq.ThreadWait.OrganizeClientBuilder",
  107. /* (x.2) config */
  108. /* 地址。例如: "tcp://127.0.0.1:4502" 、 "ipc://4502" */
  109. "endpoint": "tcp://127.0.0.1:4502"
  110. },
  111. {
  112. // WebSocket
  113. /* (x.1) type - WebSocket */
  114. /* 在此Assembly中查找builder */
  115. "assemblyFile": "Sers.CL.WebSocket.dll",
  116. /* the class of builder in assemblyFile */
  117. //"className": "Sers.CL.WebSocket.OrganizeClientBuilder",
  118. /* (x.2) config */
  119. /* 服务端地址(默认为 "ws://127.0.0.1:4503") */
  120. "host": "ws://127.0.0.1:4503",
  121. /* 是否校验服务端证书(使用wss时有效),default:true */
  122. "//validateRemoteCertificate": false
  123. },
  124. {
  125. // Zmq.FullDuplex
  126. /* (x.1) type */
  127. /* 在此Assembly中查找builder */
  128. "assemblyFile": "Sers.CL.Zmq.FullDuplex.dll",
  129. /* the class of builder in assemblyFile */
  130. //"className": "Sers.CL.Zmq.FullDuplex.OrganizeClientBuilder",
  131. /* (x.2) config */
  132. /* 地址。例如: "tcp://127.0.0.1:4504" 、 "ipc://4504" */
  133. "endpoint": "tcp://127.0.0.1:4504"
  134. },
  135. {
  136. // Ipc.SharedMemory
  137. /* (x.1) type - Ipc.SharedMemory */
  138. /* 在此Assembly中查找builder */
  139. "assemblyFile": "Sers.CL.Ipc.SharedMemory.dll",
  140. /* the class of builder in assemblyFile */
  141. //"className": "Sers.CL.Ipc.SharedMemory.OrganizeClientBuilder",
  142. /* (x.2) config */
  143. /* 共享内存名称。例如: "ipcTest" */
  144. "name": "ipcForStationDemo"
  145. }
  146. ]
  147. },
  148. // RpcData序列化模式。可不指定。默认为Text。
  149. // 可为 Newtonsoft、Text、BytePointor。
  150. // 效率依次递增。BytePointor 序列化为二进制数据而不是json字符串。
  151. "RpcDataSerializeMode": "Text",
  152. /* LocalApiService 配置,可不指定 */
  153. "LocalApiService": {
  154. "workThread": {
  155. // 模式,可为 LongThread(默认)、LongThread_TimeLimit、ManagedThread、ConsumerCascade
  156. "mode": "LongThread",
  157. /* 后台服务的线程个数(单位个,默认16)(0代表不开启服务) */
  158. "threadCount": 16,
  159. /* 最大线程数(包含常驻线程和临时线程),默认100。仅当mode为ManagedThread时有效 */
  160. "maxThreadCount": 100,
  161. /* 等待队列的最大长度(默认:100000)。仅当mode为LongThread_TimeLimit和ManagedThread时有效 */
  162. "pendingQueueLength": 100000,
  163. /* 超时时间(单位ms,默认300000),仅当mode为LongThread_TimeLimit、ManagedThread时有效 */
  164. "timeoutMs": 300000
  165. },
  166. /* 静态文件映射器。映射站点静态文件,可多个,可不指定 */
  167. "//staticFiles": [
  168. {
  169. /* api路由前缀,例如 "/demo/ui/*" */
  170. "route": "/demo/ui/*",
  171. /* api描述,静态文件描述 */
  172. "apiName": "demo站点静态文件",
  173. /* 静态文件路径。可为相对路径或绝对路径。若为空或空字符串则默认为入口程序所在目录。demo:"wwwroot/demo" */
  174. "rootPath": "wwwroot/demo",
  175. /* 静态文件类型映射配置的文件路径。可为相对路径或绝对路径。例如"contentTypeMap.json"。若不指定(或指定的文件不存在)则不指定文件类型映射配置 */
  176. "contentTypeMapFile": "contentTypeMap.json",
  177. /* 回应静态文件时额外添加的http回应头。可不指定。 */
  178. "responseHeaders": {
  179. //设置浏览器静态文件缓存3600秒
  180. "Cache-Control": "public,max-age=3600"
  181. }
  182. }
  183. ],
  184. /* 默认站点名称,可多个,可不指定 */
  185. "apiStationNames": [ "demo" ],
  186. /* Api加载器配置 */
  187. "//ApiLoaders": [
  188. {
  189. /* 在此Assembly中查找api加载器(如 Sers.Core.dll 、Sers.NetcoreLoader.dll 、 Sers.Serslot.dll ) */
  190. //"loader_assemblyFile": "Sers.Core.dll",
  191. /* 加载器的类名,可为 Sers.SersLoader.ApiLoader 、 Sers.NetcoreLoader.ApiLoader、 Sers.Serslot.ApiLoader 等。若不指定则默认为"Sers.SersLoader.ApiLoader" */
  192. //"loader_className": "Sers.SersLoader.ApiLoader",
  193. //(通过反射从此包中获取要加载的api)
  194. /* 在此Assembly中查找服务(如 Did.SersLoader.Demo.dll)(assembly、assemblyFile、assemblyName 指定任一即可) */
  195. "assemblyFile": "Did.SersLoader.Demo.dll",
  196. /* 在此Assembly中查找服务(如 Did.SersLoader.Demo)(assembly、assemblyFile、assemblyName 指定任一即可) */
  197. //"assemblyName": "Did.SersLoader.Demo",
  198. /* 强制指定ApiStation名称。可不指定。(优先级从高到低: apiStationName_Force 、 在代码上的SsStationNameAttribute特性指定 、 apiStationName 、 appsettings.json指定) */
  199. //"apiStationName_Force": "",
  200. /* ApiStation名称。可不指定。(优先级从高到低: apiStationName_Force 、 在代码上的SsStationNameAttribute特性指定 、 apiStationName 、 appsettings.json指定) */
  201. "apiStationName": "demo"
  202. /* 强制路由前缀,例如:"demo/v1"。可不指定。(优先级从高到低: routePrefix_Force、在代码上的SsRoutePrefixAttribute特性指定 、 routePrefix) */
  203. //"routePrefix_Force": "",
  204. /* 路由前缀,例如:"demo/v1"。可不指定。(优先级从高到低: routePrefix_Force、在代码上的SsRoutePrefixAttribute特性指定 、 routePrefix ) */
  205. //"routePrefix": ""
  206. }
  207. ],
  208. /* 调用Api时的自定义Scope对象。可不指定。事件顺序为 OnCreateScope -> BeforeCallApi -> OnDispose */
  209. "//OnCreateScope": [
  210. {
  211. //ApiTrace publisher(推送ApiTrace数据到ApiTrace.Collector)
  212. /* 在此Assembly中加载类 */
  213. "assemblyFile": "Sers.Core.dll",
  214. /* 动态加载的类名,必须继承接口 Sers.Core.Module.Api.ApiEvent.ApiScope.IApiScopeEvent */
  215. "className": "Sers.Core.Module.Api.LocalApi.ApiTrace.ApiTracePublisher",
  216. /* 搜集器名称(根据此名称推送到对应的搜集器,搜集器在ApiTrace.Collector中配置),若不指定则不加载 */
  217. "collectorName": "default"
  218. }
  219. ],
  220. /* 调用api前的事件,可不指定。事件顺序为 OnCreateScope -> BeforeCallApi -> OnDispose */
  221. "//BeforeCallApi": [
  222. {
  223. /* 在此Assembly中加载类 */
  224. //"assemblyFile": "Sers.Core.dll",
  225. /* 动态加载的类名,必须继承接口 Sers.Core.Module.Api.ApiEvent.BeforeCallApi.IBeforeCallApi */
  226. "className": "Bearer",
  227. //Bearer: 在调用接口前,会获取 rpcData.http.headers.Authorization(格式为 "Bearer xxxxxx"),并作为参数调用接口api_verifyAt,把返回数据放到 rpcData.user.userInfo
  228. /* 验证at接口的地址 */
  229. "api_verifyAt": "/AuthCenter/account/verifyAt",
  230. /* 验证at接口的httpMethod。(如 GET POST 可不指定) */
  231. "api_httpMethod": "POST"
  232. },
  233. {
  234. //AccountInCookie 在调用接口前,会获取 rpcData.http.headers.Cookie(格式为 "user=xxx;c=7")中的user,在账号列表中比对userToken,回写 CallerSource(rpcData.caller.source) 和 userInfo(rpcData.user.userInfo)
  235. "className": "AccountInCookie",
  236. "account": [
  237. {
  238. "userToken": "admin_123456",
  239. //"CallerSource": "Internal",
  240. "userInfo": {
  241. "name": "超级管理员",
  242. "入口": "Gover网关"
  243. }
  244. }
  245. ]
  246. }
  247. ]
  248. },
  249. /* ServiceStation配置,可不指定 */
  250. "ServiceStation": {
  251. /* 自动上报cpu Usage。不指定则不上报 */
  252. "//UsageReporter": {
  253. /* 上报时间间隔(单位:秒) */
  254. "intervalSecond": 2
  255. },
  256. /* 服务中心注册配置。在向服务中心注册站点前 是否打印(Logger.Info)请求参数。默认:false */
  257. "StationRegist_PrintRegistArg": false,
  258. /* serviceStation站点信息,可不指定 */
  259. "serviceStationInfo": {
  260. /* 服务站点名称 */
  261. "serviceStationName": "demo",
  262. /* 服务站点版本信息,若不指定则为入口链接库的版本号 */
  263. //"stationVersion": "1.1.9.0",
  264. /* [json]服务站点额外信息,可不指定 */
  265. "info": null
  266. }
  267. },
  268. /* ApiTrace 搜集器配置,可不指定 */
  269. "ApiTrace": {
  270. "Collector": [
  271. { //搜集ApiTrace到 Log/{yyyy-MM}/[{yyyy-MM-dd}]ApiTrace.txt文件
  272. /* 搜集器名称(ApiTrace推送端根据此名称推送到对应的搜集器),若不指定则不加载 */
  273. "collectorName": "default",
  274. /* 在此Assembly中加载类 */
  275. "assemblyFile": "Sers.Core.dll",
  276. /* 动态加载的类名,必须继承接口 Sers.Core.Module.ApiTrace.Collector.IApiTraceCollector */
  277. //"className": "Sers.Core.Module.ApiTrace.Collector.TxtCollector", //亦可为TxtCollector
  278. "tags": {
  279. // 可为 requestRpc requestData responseRpc responseData
  280. "route": "{{requestRpc.route}}",
  281. //"{{requestRpc.route}}": "route",
  282. "url": "{{requestRpc.http.url}}",
  283. "method": "{{requestRpc.http.method}}",
  284. "requestRpc": "{{requestRpc}}",
  285. "requestData": "{{requestData}}",
  286. "responseRpc": "{{responseRpc}}",
  287. "responseState": "{{responseRpc.http.headers.responseState}}",
  288. //"responseError_Base64": "{{responseRpc.http.headers.responseError_Base64}}"
  289. "responseData": "{{responseData}}",
  290. "responseData.error": "{{responseData.error}}"
  291. }
  292. },
  293. { //搜集ApiTrace到 splunk
  294. /* 搜集器名称(ApiTrace推送端根据此名称推送到对应的搜集器),若不指定则不加载 */
  295. "collectorName": "default",
  296. /* 在此Assembly中加载类 */
  297. "assemblyFile": "Sers.Core.dll",
  298. /* 动态加载的类名,必须继承接口 Sers.Core.Module.ApiTrace.Collector.IApiTraceCollector */
  299. //"className": "Sers.Core.Module.ApiTrace.Collector.SplunkCollector",
  300. "server": {
  301. "url": "http://192.168.20.20:8088/services/collector",
  302. "authToken": "xxxxx",
  303. "index": "dev",
  304. //若指定则在指定时间间隔统一推送数据,若不指定则立即推送。单位:ms
  305. "//intervalMs": 2000
  306. },
  307. "//hostInfo": {
  308. "host": "192.168.20.20:8088",
  309. "source": "http:sers",
  310. "sourcetype": "sers-ApiTrace"
  311. },
  312. //custome object
  313. "//appInfo": {
  314. "namespace": "sers.cloud",
  315. "appName": "mc",
  316. "moduleName": "demo"
  317. //,"...": {}
  318. },
  319. "tags": {
  320. // 可为 requestRpc requestData responseRpc responseData
  321. "route": "{{requestRpc.route}}",
  322. //"{{requestRpc.route}}": "route",
  323. "url": "{{requestRpc.http.url}}",
  324. "method": "{{requestRpc.http.method}}",
  325. "requestRpc": "{{requestRpc}}",
  326. "requestData": "{{requestData}}",
  327. "responseRpc": "{{responseRpc}}",
  328. "responseState": "{{responseRpc.http.headers.responseState}}",
  329. //"responseError_Base64": "{{responseRpc.http.headers.responseError_Base64}}"
  330. "responseData": "{{responseData}}",
  331. "responseData.error": "{{responseData.error}}"
  332. }
  333. },
  334. { //搜集ApiTrace到 ElasticSearch
  335. /* 搜集器名称(ApiTrace推送端根据此名称推送到对应的搜集器),若不指定则不加载 */
  336. "collectorName": "default",
  337. /* 在此Assembly中加载类 */
  338. "assemblyFile": "Sers.Core.dll",
  339. /* 动态加载的类名,必须继承接口 Sers.Core.Module.ApiTrace.Collector.IApiTraceCollector */
  340. //"className": "Sers.Core.Module.ApiTrace.Collector.ElasticSearchCollector",
  341. "server": {
  342. // es address, example:"http://192.168.20.20:9200"
  343. "url": "http://192.168.20.20:9200",
  344. //es index, example:"dev"
  345. "index": "dev_apitrace",
  346. //es type, example:"_doc"
  347. //"type": "_doc",
  348. //若指定则在指定时间间隔统一推送数据,若不指定则立即推送。单位:ms
  349. "//intervalMs": 2000
  350. },
  351. //custome object
  352. "//appInfo": {
  353. "namespace": "sers.cloud",
  354. "appName": "mc",
  355. "moduleName": "demo"
  356. //,"...": {}
  357. },
  358. "//tags": {
  359. // 可为 requestRpc requestData responseRpc responseData
  360. "route": "{{requestRpc.route}}",
  361. //"{{requestRpc.route}}": "route",
  362. "url": "{{requestRpc.http.url}}",
  363. "method": "{{requestRpc.http.method}}",
  364. "requestRpc": "{{requestRpc}}",
  365. "requestData": "{{requestData}}",
  366. "responseRpc": "{{responseRpc}}",
  367. "responseState": "{{responseRpc.http.headers.responseState}}",
  368. //"responseError_Base64": "{{responseRpc.http.headers.responseError_Base64}}"
  369. "responseData": "{{responseData}}",
  370. "responseData.error": "{{responseData.error}}"
  371. }
  372. }
  373. ]
  374. }
  375. },
  376. "Demo": {
  377. /* 映射静态文件 */
  378. "staticFiles": {
  379. /* 静态文件路径。可为相对路径或绝对路径。若为空或空字符串则默认为入口程序所在目录。demo:"wwwroot/demo" */
  380. "rootPath": "wwwroot/demo",
  381. /* 静态文件类型映射配置的文件路径。可为相对路径或绝对路径。例如"contentTypeMap.json"。若不指定(或指定的文件不存在)则不指定文件类型映射配置 */
  382. "contentTypeMapFile": "contentTypeMap.json",
  383. /* 回应静态文件时额外添加的http回应头。可不指定。 */
  384. "responseHeaders": {
  385. //设置浏览器静态文件缓存3600秒
  386. "Cache-Control": "public,max-age=3600"
  387. }
  388. }
  389. },
  390. /* Vit工具配置,可不指定 */
  391. "Vit": {
  392. /* 日志配置,可不指定 */
  393. "Logger": {
  394. /* print the log to Log/*.txt default:true */
  395. "PrintToTxt": true,
  396. /* print the log to console. default:true */
  397. "PrintToConsole": true,
  398. /* [optional]collector to send log to */
  399. "Collector": [
  400. {
  401. /* 在此Assembly中加载类 */
  402. "assemblyFile": "Vit.Core.dll",
  403. /* 动态加载的类名,必须继承接口 Vit.Core.Module.Log.LogCollector.ILogCollector */
  404. //"className": "Vit.Core.Module.Log.LogCollector.Splunk.SplunkCollector",
  405. "server": {
  406. "url": "https://192.168.20.20:8088/services/collector",
  407. "authToken": "xxxxx",
  408. "index": "dev",
  409. //若指定则在指定时间间隔统一推送数据,若不指定则立即推送。单位:ms
  410. "//intervalMs": 2000
  411. },
  412. "//hostInfo": {
  413. "host": "192.168.20.20:8088",
  414. "source": "http:mc",
  415. "sourcetype": "httpevent"
  416. },
  417. //custome object
  418. "//appInfo": {
  419. "namespace": "sers.cloud",
  420. "appName": "mc",
  421. "moduleName": "demo"
  422. //,"...": {}
  423. }
  424. },
  425. {
  426. /* 在此Assembly中加载类 */
  427. "assemblyFile": "Vit.Core.dll",
  428. /* 动态加载的类名,必须继承接口 Vit.Core.Module.Log.LogCollector.ILogCollector */
  429. //"className": "Vit.Core.Module.Log.LogCollector.ElasticSearch.ElasticSearchCollector",
  430. "server": {
  431. // es address, example:"http://192.168.20.20:9200"
  432. "url": "http://192.168.20.20:9200",
  433. //es index, example:"dev"
  434. "index": "dev_log",
  435. //es type, example:"_doc"
  436. //"type": "_doc",
  437. //若指定则在指定时间间隔统一推送数据,若不指定则立即推送。单位:ms
  438. "//intervalMs": 2000
  439. },
  440. //custome object
  441. "appInfo": {
  442. "namespace": "sers.cloud",
  443. "appName": "mc",
  444. "moduleName": "demo"
  445. //,"...": {}
  446. }
  447. }
  448. ]
  449. },
  450. /* 序列化配置,可不指定 */
  451. "Serialization": {
  452. /* 序列化字符编码。可不指定,默认 UTF8。只可为 UTF7,UTF8,UTF32,ASCII,Unicode。 */
  453. "Encoding": "UTF8",
  454. /* 时间序列化格式。可不指定,默认 "yyyy-MM-dd HH:mm:ss" */
  455. "DateTimeFormat": "yyyy-MM-dd HH:mm:ss"
  456. }
  457. }
  458. }