日期:2014-05-17 浏览次数:21177 次
<!-- 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>
推荐阅读更多>
-
ObjectOutputStream 必顺用到参数FileOutputStream 吗,有没有把一个对象序列化到一个字符串中的啊该怎么处理
-
中小型网站统一头尾,该如何解决
-
struts2用uploadify 上传超过1M报IO ERROR解决思路
-
spring中用注解方式实现AOP,该如何解决
-
SWING的书有什么好的介绍?多谢
-
tomcat启动报错,该怎么解决
-
ArrayList 有关问题 100
-
JAVA程序库的制作,该怎么处理
-
eclipse中cvs项目更新有关问题
-
页面前台真的好难啊比后台还难!程序员进来说说解决思路
-
"手机运行程序用电量统计"终究作什么?[小白问]
-
关于hibernate分组统计null值的不统计解决思路
-
struts2 ajax 上传路径含有中文乱码的有关问题
-
求救,关于对象流 读写的有关问题
-
js只能输入数字,该如何处理
-
急帮帮忙!解决方法
-
怎么把一个服务端的字符串型变量值赋给用户端的一个字符串型变量
-
局域网JSP 服务架构解决方案
-
不通浏览器两个servlet中获得session有关问题
-
用swing 编写一个可以实现简单的加减乘除的计算器解决方法