public abstract class A; spa
public class B extends A; class
public class C { 方法
private A a; 注入
set a方法; ab
}
注入:<bean id="a" class="class A" abstract="true" />
<bean id="b" class="class B" parent="a" />
<bean id="c" class="class C">
<property name="a" ref="b" />
</bean>
經過這樣注入來實現抽象類的注入