日期:2014-05-17 浏览次数:21121 次
<!-- 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>
推荐阅读更多>
-
新人问个很简单的有关问题 但是不知道错哪了
-
火烧屁股了 快来看看吧解决方法
-
java内置的多线程技术和调用操作系统的多线程机制有什么不同?解决方法
-
怎么通过域名访问小弟我的JSP页面
-
java环境变量的配置,该怎么处理
-
怎样允许重复提交啊解决思路
-
请教如何输出?ùé
-
S2SH整合后使用hibernateTemplate的find方法空指针异常
-
QBC查询解决方法
-
GET方式传中文参数给Struts2 Action时出现乱码解决方法
-
外派和外包有什么区别解决办法
-
<T extends Comparable< super T>>该怎么解决
-
object和object数组什么联系和区别?解决方法
-
@Validations身份验证有关问题
-
struts2 源码该如何读 今天读源码读蒙了
-
讨论:ie窗口怎么定期最小化?做一个ie插件:其他方法
-
用ssh做一个向数据库中存储前台数据时出现了以下错误,哪位大神帮忙解答以下
-
◆◇◆ 高分:关于 JBuilderX 丢失字符的有关问题! ◆◇◆
-
java.lang.NumberFormatException: For input string: ""解决思路
-
java.net.SocketTimeoutException 有关问题