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

YudaoJacksonAutoConfiguration 使 @JsonFormat 失效 #291

Closed
muze-xu opened this issue Jun 9, 2023 · 2 comments
Closed

YudaoJacksonAutoConfiguration 使 @JsonFormat 失效 #291

muze-xu opened this issue Jun 9, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@muze-xu
Copy link

muze-xu commented Jun 9, 2023

碰到问题,请在 https://github.com/YunaiV/ruoyi-vue-pro/issues 搜索是否存在相似的 issue。

不按照模板提交的 issue,会被系统自动删除。

基本信息

  • ruoyi-vue-pro 版本:v1.7.3
  • 操作系统:win11
  • 数据库:mysql

你猜测可能的原因

从vo返回给前端的时候想以 "yyyy-MM-dd HH:mm:ss" 但是 加了 注解 @jsonformat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT) 返回仍然是时间戳
(必填)我花费了 2-4 小时自查,发现可能的原因是:YudaoJacksonAutoConfiguration 配置注释调就好了,希望能优化可用使用 JsonFormat

复现步骤

第一步,

第二步,

第三步,

报错信息

带上必要的截图

@muze-xu muze-xu closed this as completed Jun 9, 2023
@superwuman
Copy link

我也遇到这个问题了,请问你是怎么解决的

@YunaiV
Copy link
Owner

YunaiV commented Jul 23, 2024

@YunaiV YunaiV self-assigned this Jul 23, 2024
@YunaiV YunaiV added the question Further information is requested label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants