开发者社区 问答 正文

fastjson parseObject 报错,是还不支持jdk8吗?报错

fastjson parseObject 报错,是还不支持jdk8吗

Exception in thread "main" com.alibaba.fastjson.JSONException: default constructor not found. class java.time.LocalDate

at com.alibaba.fastjson.util.DeserializeBeanInfo.computeSetters(DeserializeBeanInfo.java:149)
    at com.alibaba.fastjson.parser.ParserConfig.createJavaBeanDeserializer(ParserConfig.java:352)
    at com.alibaba.fastjson.parser.ParserConfig.getDeserializer(ParserConfig.java:325)
    at com.alibaba.fastjson.parser.ParserConfig.getDeserializer(ParserConfig.java:453)

展开
收起
爱吃鱼的程序员 2020-06-22 13:08:02 1457 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    这是java8的时间类型,目前还不支持。ok,谢谢

    2020-06-22 13:08:19
    赞同 展开评论
问答分类:
问答标签:
问答地址: