OpenSessionInViewFilter配置说明

news/2024/7/16 5:24:31 标签: 配置管理, Spring, Bean, Web, ORM
原文地址:http://kenshinlk.iteye.com/blog/59087 <!--OpenSessionInViewFilter配置,其实是一个又繁琐性能又低的东西,以后再也不想用到-->            < filter >                     < filter-name > OpenSessionInViewFilter </ filter-name >                     < filter-class >                            org.springframework.orm.hibernate3.support.OpenSessionInViewFilter                  </ filter-class >                     <!-- singleSession默认为true,若设为false则等于没用OpenSessionInView -->                     < init-param >                             < param-name > singleSession </ param-name >                             < param-value > true </ param-value >                     </ init-param >             </ filter >             < filter-mapping >                     < filter-name > OpenSessionInViewFilter </ filter-name >                     < url-pattern > *.do </ url-pattern >             </ filter-mapping >                <!--Spring Context listener-->             < listener >                     < listener-class >                            org.springframework.web.context.ContextLoaderListener                     </ listener-class >             </ listener >         <!--让spring知道事务管理的bean所在-->          < context-param >               < param-name > contextConfigLocation </ param-name >               < param-value > /WEB-INF/applicationContext*.xml </ param-value >           </ context-param >   

http://www.niftyadmin.cn/n/1039971.html

相关文章

分布式 ACP

分布式系统中的三个重要特性&#xff1a; **一致性(Consistency) 可用性(Availability) 分区容错性(Tolerance of network Partition)** CAP原理是指这三个要素最多只能同时实现两点&#xff0c;不可能三者兼顾。因此在进行分布式架构设计时&#xff0c;必须做出取舍。而对…

Android开源工具项目集合

Android开源工具项目集合置顶2016年05月21日 03:01:32阅读数&#xff1a;7188最近因为要去外派了&#xff0c;工欲善其事&#xff0c;必先利其器&#xff01;所以又回顾了一下自己github上所收藏的项目&#xff0c;也算是温故而知新吧。最流行的android组件大全 http://www.ope…

关于Session Fixation

前两天我转了篇文章到pst的邮件列表&#xff0c;是关于在struts 2框架下重新生成session的&#xff0c;引起了一些讨论&#xff0c;我觉得有必要在这里提醒下程序员们&#xff0c;可能他们早就遗忘了这种威胁了。  JSESSIONID Regeneration in Struts 2   实际上这就是一种…

Android---Data Binding使用入门

Android---Data Binding使用入门2016年09月22日 14:41:14阅读数&#xff1a;466一直没使用过Data Binding&#xff0c;今天就来学习一下&#xff0c;有兴趣的朋友可以直接看官网的介绍Data Binding准备工作首先要在build.gradle中添加一句dataBinding {enabled true}123添加的…

spring cloud config教程

一、Spring Cloud Config介绍 在分布式系统中&#xff0c;由于服务数量巨多&#xff0c;为了方便服务配置文件统一管理&#xff0c;实时更新&#xff0c;所以需要分布式配置中心组件。在Spring Cloud中&#xff0c;有分布式配置中心组件spring cloud config &#xff0c;它支持…

RxJava+Retrofit+OkHttp深入浅出-终极封装二(网络请求)

RSS订阅原RxJavaRetrofitOkHttp深入浅出-终极封装二&#xff08;网络请求&#xff09;2016年07月18日 11:47:15阅读数&#xff1a;186215背景&#xff1a;CSDN博客发布了一系列的RxJavaRetrofitOkHttp深入浅出-终极封装 之前发出后收到很多朋友的关注&#xff0c;原本只是自己学…

Spring Security 标准过滤器假名和顺序

Spring Security 标准过滤器假名和顺序 假名 过滤器累 命名空间元素或属性 CHANNEL_FILTER ChannelProcessingFilter http/intercept-url CONCURRENT_SESSION_FILTER ConcurrentSessionFilter http/concurrent-session-control SESSION_CONTEXT_INTEGRATION_FILTER HttpSession…

【android进阶篇】MVP+Retrofit+RxJava框架结合

【android进阶篇】MVPRetrofitRxJava框架结合置顶2016年08月15日 17:22:04阅读数&#xff1a;17044【android进阶篇】【android进阶篇】MVPRetrofitRxJava框架结合另一篇MVP优化&#xff0c;[android进阶篇]MVP模式优化&#xff0c;防止内存泄漏和空指针问题一、前言MVP模式是当…