2014-03-24

@Inject vs. @Resource vs. @Autowired — Java vs. Spring

@Autowired (Spring) & @Inject (Java)
  1. Matches by type
  2. Restricts by qualifiers
  3. Matches by name
@Resource (Java)
  1. Matches by name
  2. Matches by type
  3. Restricted by qualifiers, ignored if match is found by name