日期:2014-05-17 浏览次数:20912 次
<!-- HIBERNATE 延迟加载 -->
<filter>
<filter-name>hibernateFilter</filter-name>
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>hibernateFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- SPRING 加载 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml;</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<property name="hibernate.dialect">org.hibernate.dialect.FirebirdDialect</property>
<property name="connection.driver_class">org.firebirdsql.jdbc.FBDriver</property>
<property name="connection.url">jdbc:firebirdsql:10.106.115.2/3050:pim</property>
<property name="connection.username">SYSDBA</property>
<property name="connection.password">masterkey</property>
<!-- 配置连接池 -->
<property name="hibernate.c3p0.acquire_increment">1</property>
<property name="hibernate.c3p0.idle_test_period">100</property> <!-- seconds -->
<property name="hibernate.c3p0.max_size">10</property>
<property name="hibernate.c3p0.max_statements">50</property>
<property name="hibernate.c3p0.min_size">3</property>
<property name="hibernate.c3p0.timeout">300</property> <!-- milliseconds -->
<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
<!-- 其他 -->
<property name="show_sql">true</property>
<property name="format_sql">true</property>
<property name="current_session_context_class">thread</property>
<!-- 二级缓 -->
<property name="hibernate.cache.use_second_level_cache">true</property>
<property name="hibernate.cache.use_query_cache">true</property>
<property name="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</property>
<property name="hibernate.generate_statistics">true</property>
推荐阅读更多>
-
session 覆盖的有关问题 求高手
-
怎样在JSP中实现电子商务的交易,该如何解决
-
关于坦克大战游戏的画面暂停与恢复有关问题
-
关于ArrayList集合的有关问题
-
用过ibatis跟mybatis的朋友请进
-
熊猫烧香修改小弟我的网页,导致网站一时不敢打开
-
maven的功用
-
参数传递,值传递弄得小弟我一头雾水,大哥大姐们帮小弟我讲讲吧。
-
java解析xml,怎么拿到Test节点下所有子节点的Text
-
请问JPA2中的@Temporal
-
有哪位高手对Java或者C的 数字签名 cer证书 密钥 加密算法 这些技术熟悉和了解的,能否简单介绍一下
-
J2ee当前适合开发哪类项目?适合建站吗
-
jsp+javabean解决方法
-
//关于double 类型 转换成 float 类型出错,等待解决.解决方案
-
一个关于poi操作excel文件的有关问题!
-
请教 private static class Entry<E> 中<E> 是什么意思
-
SQL查询排序
-
Java读取内存,文件,数据库中的数据的速度排序。该如何处理
-
怎么绘制一个曲线图显示在jsp页面
-
hibernate3.0 + eclipse开发的奇怪有关问题