日期:2014-05-17 浏览次数:21114 次
<!-- 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>
推荐阅读更多>
-
怎样判断是提交按钮还是超连接的提交事件解决方案
-
JSP 表单提交有关问题
-
接口能不能有构造方法?解决思路
-
请问一个关于关于java读取注册表信息有关问题! 多谢
-
想找一位java师傅,免费学徒,愿意收留的说声。解决思路
-
怎么用DAO自动生成函数 向数据库插入数据?persist merge等
-
KXML嵌套解析的有关问题
-
SSH 第二次跳转有关问题
-
看看哪位高手是大神?让eclipse编辑区的字体颜色更显情怀
-
servlet 调用javabean的有关问题
-
问个比较初级的有关问题native2ascii不是内部命令
-
wicket中tinyMce平添中文字体
-
[小白]TCP协议文件传输有关问题
-
SSH在很长时间不操作,又操作的时候报错
-
win7上如何安装oracle数据库
-
jwork ,命
-
byte数据类型转换解决方案
-
javabean 与 json 相互转换有关问题
-
一个类型转换有关问题,
-
五道技术面试题目提供给大家,希望对大家有用!解决方案