Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
510 views
in Technique[技术] by (71.8m points)

caching - Spring-Boot Redis Cache Serialization ClassCastException

I'm having multiple microservices sharing cache together.I'm using GenericJackson2JsonRedisSerializer and got this error on deserializing the cached value.

java.lang.ClassCastException: class com.serviceA.AClass cannot be cast to class com.serviceB.AClass

How can I deserialize it without put AClass in a common shared package?

Thank you

question from:https://stackoverflow.com/questions/65623223/spring-boot-redis-cache-serialization-classcastexception

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...