Spring-如何为多个entityManager配置OpenEntityManagerInViewInterceptor

时间:2016-02-01 11:23:49

标签: java spring hibernate

Spring-如何在我的应用程序中为多个entityManager配置OpenEntityManagerInViewInterceptor?

这就是我已经为它配置它的方式..

<bean class="org.springframework.orm.jpa.support.OpenEntityManagerInViewInterceptor">  
            <property name="entityManagerFactory" ref="entityManagerFactory" />  
</bean>

0 个答案:

没有答案