摘要: ClassLoader加载类的原理1. 原理介绍 ClassLoader使用的是双亲委托模型来搜索类的,每个ClassLoader实例都有一个父类加载器的引用(不是继承的关系,是一个包含的关系),虚拟机内置的类加载器(Bootstrap ClassLoader)本身没有父类加载器,但可以用作其它Cl 阅读全文
posted @ 2021-10-31 23:58 果果虫 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 类加载 类的加载指的是将类的.class文件中的二进制数据读入到内存中,将其放在运行时数据区的方法区内,然后在堆区创建一个java.lang.Class对象,用来封装类在方法区内的数据结构。类的加载的最终产出是位于堆区中的Class对象,Class对象封装了类在方法区内的数据结构,并且向我们提供了访 阅读全文
posted @ 2021-10-31 23:55 果果虫 阅读(114) 评论(0) 推荐(0) 编辑
摘要: spring 启动类 SpringApplication.run(PpApplication.class,args) AnnotationConfigEmbeddedWebApplicationContext context = createAndRefreshContext(listeners, 阅读全文
posted @ 2021-10-31 22:50 果果虫 阅读(694) 评论(0) 推荐(0) 编辑