how to do spring javaconfig inheritance

非 Y 不嫁゛ 提交于 2019-12-11 16:51:57

问题


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:


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.



来源:https://stackoverflow.com/questions/28927089/how-to-do-spring-javaconfig-inheritance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!