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

前端 未结 7 702
庸人自扰
庸人自扰 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 03:41

    The "ID" of a class in the JVM consists of the fully qualified class name and the class loader that was used to load it. This means, if you load two classes with the same name by different class loaders they are considered different classes.

提交回复
热议问题