日期:2014-05-17 浏览次数:21024 次
<!-- 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>
推荐阅读更多>
-
淡淡苦涩,才是今天滋味。该如何处理
-
Hibernate 持久化类,更新同步有关问题
-
java上创建一个新文件路径的方法
-
swing两个初级有关问题
-
用form.action进行页面跳转有关问题
-
java.lang.OutOfMemoryError
-
一个很基本的JAVA有关问题,初级初学者提问
-
流水号解决办法
-
小弟我安装了sql-SP4,运行netstat -an,可是1433端口没有监听,什么原因呢?
-
关于进度条,是基于Struts2的,实现ProgressListener接口,该如何解决
-
java String到Date,该如何处理
-
想知道个有关问题(你们的脖子不疼吗)
-
target有关问题
-
请问,TOMCAT配连接池的出现有关问题
-
关于Java中定义动态数组的兑现方法
-
JavaWeb,Oracle数据库,分页后怎么是新查询还是原来的查询
-
=====亲,帮忙填份问卷哦,亲=====,该怎么处理
-
jsp动态生成的表格导出excel的步骤
-
怎么判断文件下载完成,然后取消遮蔽层
-
急>tomcat解决思路