Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何设置rest协议下LocalDateTime的序列化格式 #2

Open
liyifango opened this issue Sep 24, 2021 · 0 comments
Open

如何设置rest协议下LocalDateTime的序列化格式 #2

liyifango opened this issue Sep 24, 2021 · 0 comments

Comments

@liyifango
Copy link

您好!

当通过sofa rpc暴露rest服务时,如何统一设置对返回对象中LocalDateTime类型的序列化格式为"yyyy-MM-dd HH:mm:ss"?

注:我们遇到的场景中无法通过在返回对象对应属性上添加@JsonSerialize等注解来完成指定的格式化模式,因此期望了解是否有其它方式可以统一配置该序列化模式。

谢谢!

@liyifango liyifango changed the title 如何设置rest写一下LocalDateTime的序列化格式 如何设置rest协议下LocalDateTime的序列化格式 Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant