<bean id="parentTriangle" class="org.kiran.spring.Triangle" abstract="true">
<property name="type">
<list>
<value>equilateral</value>
<value>scalene</value>
</list>
</property>
</bean>
<bean id="triangle" class="org.kiran.spring.Triangle" parent="parentTriangle" >
<property name="type">
<list merge="true">
<value>isosceles</value>
</list>
</property>
</bean>
Its throwing an error
Do i need to add anything to the header to make it work??
Your spring config is just fine, you are missing a scheme configuration.
Verify that your spring config have the following header :
<beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
">