用open session in voiw的话怎么配置呀,
网上说有两种方法1。<filter>
<filter-name>OpenSessionInViewFilter</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>OpenSessionInViewFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>有人说这种性能上不好,,向有经验的高人们请教一下,,1:
想用这种open session in view 解决session倒底用哪种配置好呀,最好能给出代码2: 如果不用这种模式,有没有别的方案解决session问题呀,,
网上说有两种方法1。<filter>
<filter-name>OpenSessionInViewFilter</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>OpenSessionInViewFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>有人说这种性能上不好,,向有经验的高人们请教一下,,1:
想用这种open session in view 解决session倒底用哪种配置好呀,最好能给出代码2: 如果不用这种模式,有没有别的方案解决session问题呀,,
解决方案 »
- Spring如何在Java应用程序中自动实现依赖注入?
- Hibernate插入操作时报value larger than specified precision allows for this column错误
- 从数据库里面读出表放到数组里面
- logic:iterate的问题
- struts程序从tomcat移植到resin的问题
- hibernate的*.hbm.xml中可以实现对数据库的升降排序吗?
- Home接口的jndi名找不到 not bound
- 现在绑我澄清一下概念:
- 在线等..
- 为什么一直报id找不到的错啊?
- struts2在调用action中的方法时出错显示找不到这个方法!!求教!!
- annotation配置spring+Hibernate集成问题
http://http://topic.csdn.net/u/20070913/23/1962260d-def1-4e55-92bf-32a4b5a9ea19.html?934820229
<key column="qxid"></key> <one-to-many class="JD"/>
</set>
写lazy="false"