@Resource acts like @AutoWired, except that @AutoWired is automatically injected as byType, whereas @Resource is automatically injected as byName by default.

@qualifier (“cusInfoService”) @qualifier (“cusInfoService”) @qualifier (“cusInfoService”) @qualifier (“cusInfoService”) Selective injection can be done through the name and Type attributes

Normally @autowired is used with @qualifier and @resource alone.

Of course @autowired can be used by itself without conflicts

@Autowired

Qualifier @Qualifier(” Bean name “)

Assemble beans by name, used in combination with @autoWired to solve the problem of finding multiple beans by type match.