posts - 88,comments - 7,views - 22万
10 2018 档案
@Autowired与@Resource 详细诠释和区别(附带例子)
摘要:@Autowired 与@Resource:1、@Autowired与@Resource都可以用来装配bean. 都可以写在字段上,或写在setter方法上。2、@Autowired默认按类型装配(这个注解是属业spring的),默认情况下必须要求依赖对象必须存在,如果要允许null值,可以设置它的 阅读全文
posted @ 2018-10-17 16:13 菜霸 编辑
Spring 配置 Annotation <context:annotation-config> 和 <context:component-scan>标签的诠释及区别
摘要:Spring 开启Annotation <context:annotation-config> 和 <context:component-scan>诠释及区别 <context:annotation-config> 和 <context:component-scan>的区别 <context:ann 阅读全文
posted @ 2018-10-17 16:05 菜霸 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示