日期:2014-05-17 浏览次数:20703 次
<!-- 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习题:解决方法
- jsp页面无法正常显示数据库内容的时候,该如何解决
- java怎么从sqlserver数据表中读取一行,并显示到界面下
- !一个聊天窗口的层次有关问题!JS什么不是很懂!救命!
- java中仅由{ }包袱的代码块的执行原理
- jsp页面是怎样变成html的?该怎么处理
- Java异步下载网页,该怎么解决
- hibernate sqlQuery 与实体类的映射关系有关问题
- 求求们,给个在jsp中用jfreechart写得折线图的例子
- 使用error.jsp出现Http500内部服务器异常
- JAVA语法有关问题
- 折腾了一天,想修正一个游戏的汉化,可是别人好好的汉化文件被小弟我一修改,进游戏就不显示中文了
- spring AOP 高手请入(struts+spring遇到的有关问题)
- jsp怎么让一个类文件里的变量接收JSP页面中表单值
- myeclipse8怎么调试javascript脚本,快崩溃了
- 小弟初学,求高手帮忙 分组统计的有关问题
- 怎么刷新showDialog()弹出的页面
- 一个有关线程有关问题的疑惑,比较简单,小弟我是新手,下
- 做文件下载时的报错?关于流的有关问题
- 求教一个关于JLabel的有关问题