日期:2014-05-17 浏览次数:21059 次
<!-- 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程序打包后无法正常运行解决方法
-
DataInputStream如何定位
-
读取excel表格中的数据,并存放到二维数组中解决方案
-
IE8 input file 的有关问题?奇怪的有关问题.
-
数据库insert语句的使用解决方法
-
请教该怎么在服务器端运行一个exe
-
jsp 中的session 跟asp.net中的viewstate有什么区别?哪个更好
-
javamail发送邮件顺利 但是却接收不到邮件
-
无法去掉MouseMotionListener这个事件解决方案
-
重复调用一个函数怎样让每次返回的值(ArrayList)都重新更新?该怎么解决
-
javascript的 值怎么传给java代码
-
求一位ExtJS的圣人
-
405异常无法解决,求各位帮忙
-
小初学者求教!多谢啦
-
新手请问,发布网站的详细过程,主机用adsl上网
-
SQL语句查询计算的有关问题,下
-
跳转页面出错,求指教,该如何处理
-
多个JSP参数传递有关问题.
-
sql查询横向显示如何显示在jsp里
-
请您来帮忙,JS的字符串有关问题