org.springframework.data.redis.serializer.SerializationException: Cannot serialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException: Failed to serialize object using DefaultSerializer; nested exception is java.lang.IllegalArgumentException:DefaultSerializer requires a Serializable payload but received an object of type[com.bx.cloud.common.auth.component.AuthSession]
解决方法:
对象xxx必须实现序列化,才能存储到Redis。如果没实现Serializable,控制台会报以上异常
public class AuthSession implements Serializable