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

public class Authority {
    private Integer id;
    private String authority;
    private Customer customer;
    private Customer_Authority customer_authority;

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

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

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

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

posted @ 2021-05-20 15:45  泫然  阅读(468)  评论(0编辑  收藏  举报