日期:2014-05-17 浏览次数:21185 次
<!-- 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>
推荐阅读更多>
-
Listener refused the connection with the following error: ORA-12519解决思路
-
求命令行的资料编码utf8/ascii等转换器
-
高手快快来啊这个如何解决啊
-
轻量级Java EE企业应用实战(第3版):Struts 2+Spring 3+Hibernate整合开发 这本书如何样?
-
登陆信息保存在Cookie中的有关问题
-
J2SM有关问题
-
线程访问一个synchronised方法的有关问题
-
setDate()有关问题
-
小弟我要做一个电子商务网站,支付模块,怎么搞?怎么接口,编码量,大不大
-
eclipse 怎么调试jsp
-
Eclipse的WTP有哪位使用过啊
-
java中的增添一个get方法
-
jsp中标签useBean中的class属性值如何设置
-
如何样用css做出圆角矩形呢? 求思路
-
手机软件解决方案及软件,如果帮小弟我搞定了的话,不但给高分,而且还考虑现金送上(为了更多关注,重复发,但同样给分)
-
兄弟们,你们都用什么方式找工作呀?该如何解决
-
为何打印不出想要的结果
-
急100分问高手个有关问题!
-
short的有关问题
-
一个有点基础的有关问题,关于类加载