自定义类加载器
如果要打破双亲委派模型,就继承ClassLoader类,重写loadclass方法;
如果不想打破双亲委派模型,就继承ClassLoader类,重写findclass方法。
ClassLoader类学习
最新推荐文章于 2023-07-08 15:42:52 发布
自定义类加载器
如果要打破双亲委派模型,就继承ClassLoader类,重写loadclass方法;
如果不想打破双亲委派模型,就继承ClassLoader类,重写findclass方法。