首页 > 其他分享> > DefaultSerializer requires a Serializable payload but received an object of type [com.itheima.domai
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。
完美的解决了这个问题!!!
标签:Customer,received,实体类,domai,private,customer,authority,type,Authority 来源: https://www.cnblogs.com/xuan99/p/14790083.html