I have 2 classes (B,C) extends class A.
@Service
public class A extends AbstratClass{
@Autowired
A(MyClass br) {
super(br);
You are trying (somewhere else) to autowire a bean of type A. Something like:
@Autowired
private A beanA;
But you have 2 beans that conform to this.
You can resolve this by using @Resource and specifying which bean exactly:
@Resource("b")
private A beanA;
(where "b" is the name of the injected bean) or using the @Qualifier annotation.