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