-
-
Notifications
You must be signed in to change notification settings - Fork 84
Closed
Labels
help wantedExtra attention is neededExtra attention is needed
Description
现状:
目前ApolloJsonValue仅支持从portal读取指定配置,没有其他功能支持。在遇到下面场景时显得有些无奈:
假如在配置中有一些日期时间相关的配置,如下:
{ "beginTime": "2019-08-21 00:00:00", "endTime": "2019-09-05 00:00:00", "switch": true }
在接收对应的时间按配置时只能用String(如果直接用Date接受,会报错:Failed to parse date ["2019-08-21 00:00:00"]: Invalid time zone indicator ' '),然后在代码中进行格式化。
建议:
ApolloJsonValue增加一个 dateFormat ,ApolloJsonValueProcessor在解析式可以用指定的格式去解析
sword012
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed