@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

以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部