摘要:
7、Bean的自动装配 自动装配是Spring满足bean依赖的一种方式 Spring会在上下文自动寻找,并自动给bean装配属性 在Spring中有三种装配的方式 在xml中显示配置 在java中显示配置 隐式的自动装配bean 【重要】 byType自动装配:byType会自动查找,和自己对象s 阅读全文
posted @ 2022-06-13 15:41
无关风月7707
阅读(51)
评论(0)
推荐(0)
摘要:
7.2 使用注解实现自动装配 jdk1.5支持的注解,spring2.5支持的注解 The introduction of annotation-based configuration raised the question of whether this approach is “better” 阅读全文
posted @ 2022-06-13 15:34
无关风月7707
阅读(41)
评论(0)
推荐(0)

浙公网安备 33010602011771号