SerializationException when using RedisTemplate #2857
Labels
status: waiting-for-feedback
We need additional information before we can continue
status: waiting-for-triage
An issue we've not yet triaged
When I used RedisTemplate to set & get data, the program throwed org.springframework.data.redis.serializer.SerializationException, the exception message was "Could not resolve type id 'xxx.entity.DeptNode' as a subtype of
xxx.entity.DeptNode
", the two paths are absolutely the same.I found that the RedisTemplate used different types of classloader, so, the class DeptNode was recgonized as different class. By removing spring-boot-devtools in pom.xml, the problem could be solved, but I was not permitted to remove this package, what could I do to resolve this problem?
The text was updated successfully, but these errors were encountered: