Avoid stack overflow in case of chained factory-bean references to FactoryBean class

Issue: SPR-14551
(cherry picked from commit 8b5d355)
This commit is contained in:
Juergen Hoeller
2016-08-11 22:56:14 +02:00
parent 79a56967a1
commit e23ac031ff
3 changed files with 18 additions and 8 deletions

View File

@@ -30,4 +30,10 @@
</property>
</bean>
<bean id="sessionFactory" factory-bean="entityManagerFactory" factory-method="getSessionFactory"/>
<bean id="hibernateStatistics" factory-bean="sessionFactory" factory-method="getStatistics"/>
<bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"/>
</beans>