1.
<filter>
<filter-name>Spring character encoding filter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>GBK</param-value>
</init-param>
这个是用来处理乱码问题的
更多了解,更多交流(QQ:444084929 软件框架师 :回钦波)
2.
<context-param>
<description>spring init </description>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/bean.xml</param-value>
</context-param>
这个配置是用来指定spring配置文件所在的位置的
3.
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
这个是用来对spring容器进行初始化,做为监听器的
4.
<filter>
<filter-name>hibernateFilter</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
</filter>
这是Spring封装hibernate后提供的一个过滤器,这个过滤器的作用是:每一次请求来的时候都打开一个session每次请求结束后关闭session,解析hibernat延迟加载产生的异常。
- 大小: 80 KB
- 大小: 58.5 KB
分享到:
相关推荐
web.xml配置详解web.xml配置详解web.xml配置详解web.xml配置详解web.xml配置详解web.xml配置详解web.xml配置详解
web.xml配置文件详解让开发人员更加清楚web.xml是怎么配置。以及各个配置的作用。
在web.xml中配置action或.do,附上详细的文档
在web.xml中引入其他xml配置文件的步骤,含引入错误解决。
全面详细讲述web.xml个元素的用途 还有实例哦
为tomcat服务器配置https,tomcat需要设置的server.xml与web.xml配置。可以帮助小白为tomcat服务器配置https协议(域名)。
struts.xml和applicationContext.xml、web.xml的配置
web.xml 各属性作用描述 Web.xml 常用元素 <web‐app> ‐name>‐name>定义了WEB 应用的名字 <description></description> 声明WEB 应用的描述信息
介绍了在web.xml配置文件中如何配置过滤器。
WEB.XML标准配置注解: <!--Servlet的映射,用来说明客户端IE中输入什么样的地址字符串对应到哪个Servlet的别名--> <!--在该例中在IE地址栏中firstservlet字符串对应到别名为firstservlet的servlet--> ...
web.xml文件配置.doc 讲的是配置比较全
Filter过滤器的代码及其web.xml配置代码 很好的解决网页乱码问题,很方便,只要按照名字添加就可以了
web.xml 配置详解,需要的下载了。。。Web.xml常用元素和在java web规范中说明.按照listner,filter,servlet的顺序初始化
log4j与web.xml的配置,并输出到日志文件!有不明白的可以把问题发到我的QQ邮箱:522134398@qq.com
详细的描述了 web.xml中的每个标签的含义,以及其中的属性。并有具体例子说明。
spring在web.xml中和在struts中的不同配置..pdf
WEB-INF中的web.xml中之前增加以下配置:WEB-INF中的web.xml中之前增加以下配置:WEB-INF中的web.xml中之前增加以下配置:
spring-mvc.xml spring-mybatis.xml web.xml log4j.properties,项目中需要用到的配置文件。直接可用。
web.xml配置汇总(servlet2.3) web.xml配置汇总(servlet2.3) web.xml配置汇总(servlet2.3) web.xml配置汇总(servlet2.3)