spring - How to Inherit Single Property from parent bean to child bean -
here?in spring code properties inherited need address property in child class
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> <bean id="baseemployeebean" class="com.java.beans.baseemployee"> <property name="company" value="java2novice" /> <property name="address" value="mumbai" /> </bean> <bean id="myemployeebean" class="com.java.beans.employee" parent="baseemployeebean"> <property name="empid" value="1016" /> <property name="name" value="nataraja gootooru" /> </bean> </beans>
Comments
Post a Comment