Q6 Question about Development standards I want the full exa
^^^
Q6
Question about Development standards I want the full example for the given data
Use bean inheritance to reduce XML
Using the parent attribute of the <bean> element and you can identify that a bean be a child of some other bean and inheriting the parent bean’s properties and write the example code for it.
Solution
<bean id=\"abstractTxDefinition\" class=\"org.springframework.transaction.interceptor.TransactionProxyFactoryBean\" lazy-init=\"true\">
<property name=\"transactionManager\">
<ref bean=\"transactionManager\"/>
</property>
<property name=\"transactionAttributeSource\">
<ref bean=\"attributeSource\"/>
</property>
</bean>
<bean id=\"myService\" parent=\"abstractTxDefinition\">
<property name=\"target\">
<bean class=\"com.mycompany.MyServiceImpl\">
</property>
</bean>
