how to do spring javaconfig inheritance

2019-09-01 06:17发布

How do I make a javaconfig version for the below?

<bean id="parentDao" class="com.MyHibernateDao">
    <property name="sessionFactory" ref="mySessionFactory" />
</bean>

<bean id="childDao" class="com.ChildHibernateImpl" parent="parentDao"/>

(btw, Is there any documentation for Spring Javaconfig?)

Regards, j

1条回答
再贱就再见
2楼-- · 2019-09-01 06:56

As far as I have researched, there is no templating way that is similar to the XML sample shown, where the 'parent' attribute is used.

查看更多
登录 后发表回答