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

[QUESTION]反序列化时,如何处理手工注册的类 #3291

Open
chengyanggang opened this issue Jan 17, 2025 · 0 comments
Open

[QUESTION]反序列化时,如何处理手工注册的类 #3291

chengyanggang opened this issue Jan 17, 2025 · 0 comments
Labels
question Further information is requested

Comments

@chengyanggang
Copy link

请描述您的问题

询问有关本项目的使用和其他方面的相关问题。
开发环境 jdk21+springboot3
1、系统中有两个类 ClassA,ClassB,ClassB是ClassA中某个属性的类型;
2、ClassA和CalssB是通过代码的方法,手工注入到上下文,而不是由sprinboot自动注入
3、反序列化ClassA时,会提示ClassB的类定义不存在,但单独反序列化ClassB时正常
4、出现这种问题,是否是反序列化时,DaynamicClassLoader的parentClassLoader设置引起的
5、如何实现反序列化时,可以自动的加载到从不同jar包,手工注册的Class

@chengyanggang chengyanggang added the question Further information is requested label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant