1. 问题所示
出现如下问题:
org.springframework.data.redis.serializer.SerializationException:Cannot serialize;
nested exception is org.springframework.core.serializer.support.SerializationFailedException:
Failedto serialize object using DefaultSerializer;
nested exception is java.lang.IllegalArgumentException:DefaultSetializer
requires a Serializable payload but received an object of type [org.springblade.modules.visual.dynamic.DynamicDataSource]
2. 原理分析
根据上述的逻辑提示
可以得出如下关键信息
- 在 Spring Data Redis 中,使用 Redis 作为缓存时,