# Autowired实现多个实现类 {#autowired实现多个实现类}
@Autowired 如何实现多个实现类
# 解决方案 {#解决方案}
@Service("a")
public class AService implements Service {}
@Service("b")
public class BService implements Service {}
@Qualifier("a")
@Autowired
Service aService;
@Qualifier("b")
@Autowired
Service bService;