摘要:
代码示例1: 如果是抽象类那么抽象类上得是Lookup注解,此时才能将resource注册成一个 Appconfig.java @Configuration @ComponentScan(basePackages= "com.luban") public class AppConfig { } Us 阅读全文
摘要:
前言 ClassMetadata AnnotatedTypeMetadata 可以理解为对 Class元数据 和 Annotation元数据 的抽象 版本 Spring 5.1.x Class Class 有如下形式: Top Level Class:顶层类,即普通类 Inner Class:非静态 阅读全文
摘要:
1、getDeclaringClass return the declaring class for this class 获取对应类的声明类Class对象 2、getEnclosingClass return the immediately enclosing class of the under 阅读全文