<filter>
<filter-name>OpenSessionInViewFilter</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>OpenSessionViewFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!--能够解决 因Session关闭导致的延迟加载 -->
上次使用这个发现出现了错误,看样子还需要进一步的确定
<filter-name>OpenSessionInViewFilter</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>OpenSessionViewFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!--能够解决 因Session关闭导致的延迟加载 -->
上次使用这个发现出现了错误,看样子还需要进一步的确定