错误原因 13:34:34,859 ERROR LazyInitializationException:42 - could not initialize proxy - no Session org.hibernate.LazyInitializationException: could not initialize proxy - no Session
解决方法 这里注意顺序。。必需放在之前(因为低层Filter 的原理是从上到下过滤的) <!-- OpenEntityManagerInViewFilter required prior to struts2-->
<!-- OpenEntityManagerInViewFilter required prior to struts2-->
<filter>
<filter-name>SpringOpenEntityManagerInViewFilter</filter-name>
<filter-class>org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>SpringOpenEntityManagerInViewFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- Struts2 Filter -->
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.action</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
分享到:
相关推荐
web.xml配置文件详解让开发人员更加清楚web.xml是怎么配置。以及各个配置的作用。
web.xml配置详解web.xml配置详解web.xml配置详解web.xml配置详解web.xml配置详解web.xml配置详解web.xml配置详解
web.xml 文件详解 web.xml 文件详解 web.xml 文件详解 web.xml 文件详解
在web.xml中引入其他xml配置文件的步骤,含引入错误解决。
请在web.xml文件中使用– page >元素为整个web应用程序设置错误处理页面。已知:处理状态码为404的页面为404.jsp,处理状态码为500的页面为500.jsp。
干净 没有添加的web.xml 需要请下载哦
全面详细讲述web.xml个元素的用途 还有实例哦
spring-mvc.xml spring-mybatis.xml web.xml log4j.properties,项目中需要用到的配置文件。直接可用。
web.xml文件中的内容可能有些新手一直很模糊,在这发个web.xml文件的详细说明
WEB.XML文件 是java的配置文件 好好看看 下载吧
web.xml文件配置.doc 讲的是配置比较全
J2EE中关于web.xml文件的配置
演示web.xml文件中error-page标签的使用.zip,欢迎下载!
ssm框架web.xml文件配置
struts.xml和applicationContext.xml、web.xml的配置
为tomcat服务器配置https,tomcat需要设置的server.xml与web.xml配置。可以帮助小白为tomcat服务器配置https协议(域名)。
jboss-web.xml jndi.properties oracle-ds.xml三个文件,EJB+JPA 所需要的一些配置文件
全新的java web项目的配置文件,新建的纯净的web.xml文件,没做任何改动,下载就可以使用了。
web.xml 各属性作用描述 Web.xml 常用元素 <web‐app> ‐name>‐name>定义了WEB 应用的名字 <description></description> 声明WEB 应用的描述信息