I have using Jersey so far and I am doing my first implementation with JSON-B.
(到目前为止,我已经使用Jersey,并且正在使用JSON-B进行第一个实现。)
I am using Payara, so I working with Jersey and Yasson.
(我正在使用Payara,所以我与Jersey和Yasson合作。)
I had an issue, because the serialized dates would always contain the "[UTC]" suffix. (我遇到了一个问题,因为序列化的日期将始终包含“ [UTC]”后缀。)
I have managed to use an annotation on my date property, in my DTO.
(我设法在DTO的date属性上使用了注释。)
But I would like to configure that globally (in the JAX-RS application config?), instead of repeating myself on every date property. (但是我想全局配置(在JAX-RS应用程序配置中?),而不是在每个date属性上重复我自己。)
Is that possible? (那可能吗?)
I haven't found anything so far... (到目前为止我还没有发现任何东西...)
Side question: I assume that it is possible to get rid of this "[UTC]" suffix, since it breaks all clients trying to parse the date.
(附带的问题:我认为有可能摆脱此“ [UTC]”后缀,因为它会使尝试解析日期的所有客户端中断。)
Any idea? (任何的想法?)
ask by Olivier Liechti translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…