会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Isen_18
博客园
首页
新随笔
联系
订阅
管理
2017年3月7日
@Resource VS @Autowired
摘要: @Resource 和 @Autowired 均是用于bean注入的注解,都可以写在字段和setter方法上,如果都写在字段上,就无需写setter方法。 @Autowired 由Spring的org.springframework.beans.factory.annotation.Autowire
阅读全文
posted @ 2017-03-07 23:30 Isen_18
阅读(153)
评论(0)
推荐(0)
编辑
公告