日期:2014-05-17 浏览次数:21169 次
<!-- 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>
推荐阅读更多>
-
这些标签是什么英文的缩写?该如何解决
-
这样接口怎么初始化,小弟我现在总是为空
-
jquery 的bind里面能不能获得返回值呢? 对小弟我很难的有关问题啊
-
struts2 查询输出的有关问题
-
struts2 输出xml乱码有关问题,求大神帮解决
-
为何重新绘制的时候屏幕一闪一闪的
-
eclipse加载wtp后仍是没有动态web 只有静态web
-
MYSQL怎么实现父子关系的级联查询
-
java实现zip压缩后的压缩文件无内容怎么处理?
-
JTextField 如何 手动设置宽和高
-
求webservice书籍或教程解决方案
-
log4j调用有关问题请问
-
请问:JSP怎么生成xml文件
-
求microsoft sdk for java下载地址,该如何解决
-
jsp简单的留言板 ·
-
为什么以下程序显示不出其中的图片?该如何处理
-
andriod中notification多个进度条来回跳转不稳定解决方案
-
swing 多线程的有关问题
-
hibernate自动删除以前的表,该如何处理
-
J2ME游戏开发的高级优化技巧,该怎么解决