org.hibernate.LazyInitializationException: could not initialize proxy - no Sessi

已经加入了opensessioninview 但是在获取的时候还是抱这个错误


web.xml  的配置如下:
<filter>
<filter-name>openSessionInViewFilter</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>openSessionInViewFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>




高手赶紧来么

你可能感兴趣的:(Hibernate,Web,xml,orm)