日期:2014-05-17 浏览次数:20905 次
<!-- 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>
推荐阅读更多>
-
jbuilder 九与weblogic server815整合出错
-
几个谜题,深入的了解java解决思路
-
多线程卖票有关问题
-
一个函数,该如何解决
-
这种数值转字符串是什么情理
-
getOutputStream() has already been called for this response
-
cookie 在liunx上获取不到
-
struts2中Action的命名解决方法
-
有何差异呢?
-
下面是一个java小练习,大家看看为什么是这种输出结果。解决方案
-
====SSH的环境下 为什么有的URL 结尾会jsessionid=. 这样的东西=====,该怎么解决
-
Quartz 过期之后还被执行一次,该怎么处理
-
struts验证,求救解决方法
-
请教JAVA求职英语水平的要求
-
小弟我用Editplus运行java程序时无法在dos界面输出和输入,求指导解决
-
hibernate 关于 is not 地图ped的有关问题
-
判断变量X是奇数还是偶数,master来给小弟我点批评
-
org.apache.jasper.JasperException: For input string: "1</a>
-
查询数据库内存不足java.lang.OutOfMemoryError: Java heap space,该怎么处理
-
jsp里面的js调用另外的jsp,这个jsp再用ajax调用java类的有关问题