Custom Java classloader not being used to load dependencies?

后端 未结 5 1238
逝去的感伤
逝去的感伤 2021-02-05 10:28

I\'ve been trying to set up a custom classloader that intercepts classes to print out which classes are being loaded into the application. The classloader looks like this

<
5条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-05 10:56

    what if you override the other loadClass() method?

    protected Class loadClass(String name, boolean resolve)
    

提交回复
热议问题