How Tomcat Classloader separates different Webapps object scope in same JVM?

前端 未结 7 650
庸人自扰
庸人自扰 2020-12-05 03:35

Since Tomcat can load more than one webapp at once, and those webapps can work separately, and do not disturb each other, and they work in same JVM. So I am very confused a

相关标签:
7条回答
  • 2020-12-05 04:02

    Remember that a class in Java is identified by its fully qualified name and the classloader that loaded it. Tomcat uses separate classloaders for each context (web application) that you deploy, thus keeping them separate. In addition, the system classloader loads the tomcat specific libraries and JVM bootstrap loader load the Java core libraries.

    0 讨论(0)
提交回复
热议问题