SpringMVC解决视图懒加载问题
在web.xml文件中加入相关的过滤器即可
<!-- 解决视图懒加载 --> <!-- org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter --> <filter> <filter-name>oemiv</filter-name> <filter-class>org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter</filter-class> </filter> <filter-mapping> <filter-name>oemiv</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>