摘要: 声明:本文转载,原文链接: 一文搞懂class.getClassLoader().getResource("xx.xml")和class.getResource("xx.xml")的区别和联系 - 简书 https://www.jianshu.com/p/e3c94eff77c5 前言 我们在阅读一 阅读全文
posted @ 2020-10-23 23:50 西伯利亚虎 阅读(676) 评论(0) 推荐(0) 编辑
摘要: AccessController.doPrivileged在底层源码中会出现,本文对它进行一个简单介绍及如何使用的说明。首先解释一下几个相关概念保护域类被装入jvm,为每个类指定一个保护域,保护域定义了授予一段特定代码的所有权限,一个保护域对应一个策略policy.txt文件的一个或者多个grant 阅读全文
posted @ 2020-10-23 22:08 西伯利亚虎 阅读(1030) 评论(0) 推荐(0) 编辑
摘要: 一.区别 单独的T 代表一个类型(表现形式是一个类名而已) ,而 Class<T>代表这个类型所对应的类(又可以称做类实例、类类型、字节码文件), Class<?>表示类型不确定的类 Class<T>表示T类型的字节码文件,意思是: Class<T> 相当于Class<T> c=T.class,T 阅读全文
posted @ 2020-10-23 19:37 西伯利亚虎 阅读(973) 评论(0) 推荐(0) 编辑

Permanence, perseverance and persistence in spite of all obstacles, discouragements and impossibilities: It is this, that in all things distinguishes the strong soul from the weak.