日期:2014-05-17 浏览次数:20688 次
<!-- 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>
![]()
推荐阅读更多>
- J2ME 音乐播放解决思路
- mysql 一个表外键会关联多个表吗
- 网页中使用多个applet造成cpu占用100%的有关问题
- java实现webservice接口解决方案
- 高分答谢,Hibernate动态创建表语句,路过有分(散分贴)。解决方法
- 问个切合实际的有关问题~
- xfire webservice 客户端调用服务端 一个小疑点
- 哪位可以给个STRUTS+HIBERNATE的例子?该如何处理
- 判断两个无序数组相等有关问题
- 网站访问量如何实现
- JAVA中定时器怎么使用
- jsp没法对Mysql进行操作
- 正则表达式必须为小于12位数字?解决办法
- 在启动TOMCAT时出现java.lang.ClassCastException: org.apache.naming.resources.FileDirContext异常
- jdk中有没有什么工具直接类可以将InputStream转换成byte数组?解决方法
- 100分求jsp+javabean的购物车源代码。解决办法
- 急求帮忙在ITEYE下上载一文件, 不胜感谢
- 暑假的实习,该怎么解决
- java怎么编写一个象百度那样在线听歌的接口供其他地方调用,并访问在线听够
- 【新人援助】EL表达式为什么可以在值栈中取值