首页 > 其他 > 详细

DefaultSerializer requires a Serializable payload but received an object of type [com.itheima.domai

时间:2021-05-20 22:25:27      阅读:35      评论:0      收藏:0      [点我收藏+]
public class Authority {
    private Integer id;
    private String authority;
    private Customer customer;
    private Customer_Authority customer_authority;

在做springSecurity的时候,使用的是mybatis框架,还有Redis缓存;

出现这种问题的原因是由于我的实体类并没有序列化导致的,

之后我就在实体类加上了一个 implements Serializable。

完美的解决了这个问题!!!

DefaultSerializer requires a Serializable payload but received an object of type [com.itheima.domai

原文:https://www.cnblogs.com/xuan99/p/14790083.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!