-
Notifications
You must be signed in to change notification settings - Fork 495
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
[FEATURE]支持MongoDB的Date类型和java.util.Date类型的转换 #2614
Labels
Milestone
Comments
这时
|
wenshao
added a commit
that referenced
this issue
May 22, 2024
https://oss.sonatype.org/content/repositories/snapshots/com/alibaba/fastjson2/fastjson2/2.0.51-SNAPSHOT/ |
@wenshao 温少,你的手速太快了,我已经测试过没问题了,我看了你刚刚优化的代码,比我的版本更优美, 我是修改
|
@ocean23 欢迎后续参与进来! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请描述您的需求或者改进建议
背景如下:
由于我们非常重度的依赖
MongoDB
数据库,而MongoDB
返回日期(Date)的JSON
字符串并不是一个标准的JSON
,所以fastjson2
需要适配才行MongoDB
存储日期数据ttl
的内容org.bson.Document
获取到json
字符串的内容fastjson2
没有对mongodb
的日期类型做特别的适配,所以就会导致报错请描述你建议的实现方案
我已经写好的PR, 让
fastjson2
支持mongodb
的日期类型转换为java.util.Date类型,一会我把PR发出来The text was updated successfully, but these errors were encountered: