异常信息:

org.springframework.data.redis.serializer.SerializationException: Cannot deserialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException: Failed to deserialize payload. Is the byte array a result of corresponding serialization for DefaultDeserializer?; nested exception is java.io.InvalidClassException: com.luban.scm.scmplatform.modules.sys.entity.LoginUser; local class incompatible: stream classdesc serialVersionUID = -5388239816073203128, local class serialVersionUID = 4198333968177734505
	org.springframework.data.redis.serializer.JdkSerializationRedisSerializer.deserialize(JdkSerializationRedisSerializer.java:84)

清除redis缓存,解决异常

 

清除缓存:

1.访问redis根目录    cd  /usr/local/redis-2.8.19

2.登录redis:redis-cli -h 127.0.0.1 -p 6379

3.查看所有key值:keys *

4.删除指定索引的值:del key

5.清空整个 Redis 服务器的数据:flushall 

6.清空当前库中的所有 key:flushdb 

  

 

相关文章:

  • 2021-09-14
  • 2022-01-23
  • 2021-01-10
  • 2021-12-02
  • 2021-11-13
  • 2021-12-21
  • 2021-11-02
  • 2021-11-02
猜你喜欢
  • 2021-11-02
  • 2021-11-02
  • 2022-01-29
  • 2021-11-02
  • 2022-12-23
  • 2021-09-14
相关资源
相似解决方案