Tomcat classLoader replacement principle

as shown in the figure, in the webApp of tomcat, class loading is triggered when an object instance is initialized.
what is called here is the loadClass method of WebappClassLoaderBase. I wrote the code myself, and loadClass uses Launcher@APPClassLoader, to know how tomcat is transformed and implemented here.
clipboard.png

May.22,2021
Menu