07 2022 档案

摘要:spring的bean自动装配主要是通过@Autowired注解实现的 (一) bean源代码解析 @Target({ElementType.CONSTRUCTOR, ElementType.METHOD, ElementType.PARAMETER, ElementType.FIELD, Elem 阅读全文
posted @ 2022-07-19 19:54 取名好烦呀 阅读(109) 评论(0) 推荐(0)
摘要:Spring框架中支持了两种不同形式的IOC容器初始化方式,一种是基于XML的容器初始化,另外一种是基于注解的初始化方式,初始化容器时使用的具体初始化类不同。 基于xml的方式: ClasspathXmlApplicationContext 基于annotation的方式: AnnotationCo 阅读全文
posted @ 2022-07-16 12:58 取名好烦呀 阅读(349) 评论(0) 推荐(0)