Hibernate4.X could not initialize proxy - no Session

阅读更多

could not initialize proxy - no Session

 

在web.xml中添加如下代码:


	openSessionInViewFilter
	org.springframework.orm.hibernate4.support.OpenSessionInViewFilter
	
		singleSession
		true
	
	
		sessionFactoryBeanName
		sessionFactory
	

 

 

 

在hibernate.cfg.xml中添加如下代码:

true

 

你可能感兴趣的:(hibernate,not,init,proxy,no,Session)