fastjson 序列化函数式接口时无法序列化和反序列化

polhcujo  于 2021-11-27  发布在  Java
关注(0)|答案(3)|浏览(433)

zh lambda 表达式 Runnable 属性并未序列化成功

7fyelxc5

7fyelxc51#

我也试过 jackson 也是一样的,只有 jdk 序列化可以,请问有人知道用 fastjson 该如何序列化出函数式接口

klsxnrf1

klsxnrf12#

implements 序列化接口试试.或者你去自定义一个fastjson的序列化器或者反序列化器

laawzig2

laawzig23#

目前我的实现是,函数式接口属性采用的 jdk序列化方式.…

2020年10月22日 17:47,张顺***@***.***> 写道: implements 序列化接口试试.或者你去自定义一个fastjson的序列化器或者反序列化器 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#3476 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AODBFTM3O3XBHBJIMRAENFTSL75UZANCNFSM4R6QKKUA>.

相关问题