美文网首页
@Autowired @Qualifier @Resource

@Autowired @Qualifier @Resource

作者: BenjaminCool | 来源:发表于2020-01-01 15:10 被阅读0次

    @Autowired @Qualifier @Resource

    @Autowired
    by type

    @Autowired
    @Qualifier(value="beanName")
    by type
    by name

    @Resource()

    by name
    by type


    by name.png by type.png

    建议用@Resource

    相关文章

      网友评论

          本文标题:@Autowired @Qualifier @Resource

          本文链接:https://www.haomeiwen.com/subject/jxtgoctx.html