
Spring
dongguojun
这个作者很懒,什么都没留下…
展开
-
使用Spring的过滤器解决中文乱码问题
以前处理中文需要自己写Filter类,Spring已经有一个处理字符编码的类了,所以就不需要自己写了,直接用就行。 在[color=red]web.xml[/color]中添加一个全局过滤器 类文件为:[color=red]org.springframework.web.filter.CharacterEncodingFilter[/color] 初始...原创 2009-12-15 22:38:25 · 176 阅读 · 0 评论 -
用spring提供的过滤器解决OpenSessionInView
在web.xml中加入 [code="xml"] OpenSessionInViewFilter org.springframework.orm.hibernate3.support.OpenSessionInViewFilter OpenSessionInViewFilter /* [/code]2009-12-15 22:54:12 · 102 阅读 · 0 评论