怎么实现一个自定义的类加载器?需要注意什么?

若要实现自定义类加载器,只需要继承 java.lang.ClassLoader 类,并且重写其 findClass() 方法即可。

发表评论

后才能评论