日期:2014-05-17 浏览次数:20729 次
<!-- 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作的语音识别
- 关于oracle11g的JDBC有关问题,
- SSH 中hibernate一级缓存有关问题()
- org.hibernate.PropertyAccessException: exception setting
- spring中的proxy是什么意思?该如何解决
- jsp实现画图功能,该如何处理
- 求eclipse CDT插件的下载地址?待。
- SOS解决思路
- 【新手提问】关于JDBC错误的有关问题
- 新人报道解决思路
- 亲爱的J2ME同胞,小弟我的团队已经开发出了一款应用,特地拿来一晒
- eclipse开发android有关问题
- poi导入excel出现 Initialisation of record 0x86 left 2 bytes remaining still to be re解决办法
- Java面试有关问题之四十一
- 这应该算是跨域有关问题吧
- useBean 初级有关问题
- j2me怎么实现在线播放WEB上的音乐文件
- 进度条有关问题