头疼死了,明明配置了opensessioninviewfilter,可是还报org.hibernate.LazyInitializationException: could not initialize proxy - no Session
大家帮我看一下,配置有没有错,我有两个spring文件,applicationContext.xml和applicationContext-beans.xml
org.springframework.web.context.ContextLoaderListener
contextConfigLocation
classpath:applicationContext*.xml
openSessionInView
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
openSessionInView
/*
<filter>
<filter-name>struts</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
大家别这样啊,不是我不给分,而是因为我是javaeye新手,身上没分(1分都没有),难道大家只认分?!我想不是这样吧