問題報錯
DefaultSerializer requires a Serializable payload but received an object of type [******]
問題原因
沒有實現 Serializable 接口,因爲 Spring 會將對象先序列化再存入 Redis
解決方法
public class demo implements Serializable
DefaultSerializer requires a Serializable payload but received an object of type [******]
沒有實現 Serializable 接口,因爲 Spring 會將對象先序列化再存入 Redis
public class demo implements Serializable
01 背 景 播放鏈路是愛奇藝最重要的業務,鏈路穩定性極其重要,隨着愛奇藝用戶的不斷增長和熱播劇集的推廣,播放鏈路往往面臨着難以預估的用戶流量的突增,考