会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
夹竹桃
博客园
首页
新随笔
联系
订阅
管理
2020年4月12日
@Autowired 与@Resource的区别(转)
摘要: 原文地址:https://blog.csdn.net/weixin_40423597/article/details/80643990 1、 @Autowired与@Resource都可以用来装配bean. 都可以写在字段上,或写在setter方法上。 2、 @Autowired默认按类型装配(这个
阅读全文
posted @ 2020-04-12 18:30 夹竹桃
阅读(182)
评论(0)
推荐(0)
编辑
公告