点击这里成为作者 · 更新于 2018-09-18 23:00:45

@Autowired @Inject @Resource

@Autowired and @Inject

Matches by Type
Restricts by Qualifiers
Matches by Name

AutowiredAnnotationBeanPostProcessor

@Resource

Matches by Name
Matches by Type
Restricts by Qualifiers

CommonAnnotationBeanPostProcessor
上一篇: Introduction? 下一篇: Hibernate