Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SerializationException when using RedisTemplate #2857

Closed
Welkin1027 opened this issue Feb 26, 2024 · 1 comment
Closed

SerializationException when using RedisTemplate #2857

Welkin1027 opened this issue Feb 26, 2024 · 1 comment
Labels
status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged

Comments

@Welkin1027
Copy link

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?

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 26, 2024
@mp911de
Copy link
Member

mp911de commented Feb 26, 2024

If you would like us to spend some time helping you to diagnose the problem, please spend some time describing it and, ideally, providing a minimal yet complete sample that reproduces the problem.
You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.

@mp911de mp911de added the status: waiting-for-feedback We need additional information before we can continue label Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

3 participants