Skip to content

About the development of modules #1528

Answered by yujincheng08
buffcow asked this question in Q&A
Discussion options

You must be logged in to vote

模块的类加载器不是注入应用的类加载器,所以你继承注入应用的类提示找不到父类很正常。如果硬要继承,那就在该子类初始化前(第一次使用前)替换其类加载器的父加载器为注入应用的类加载器。

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@anonymix007
Comment options

Answer selected by buffcow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants