日期:2014-05-17 浏览次数:21137 次
<!-- 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>
推荐阅读更多>
-
各位前辈麻烦你们班小弟我看看这是为什么
-
新手提问:怎么将html表单提交到*jsp的信息写入oracle数据库的表中
-
为什么不能正确解码解决思路
-
JSP 功能实现,该如何处理
-
jsp使用FCKeditor提交数据少数汉子为乱码
-
写ajax2 webwervice接口的[.receivers.RPCMessageReceiver] null
-
女生专业是程序开发可以学好吗?该怎么解决
-
eclipse中编译Java文件解决办法
-
如何找开源项目的源码啊
-
JS,这样写总出错,帮忙改一下!该怎么解决
-
为何编译通过没有被强制检查错误
-
求一算法解决思路
-
structs:关于使用超链接调用action的有关问题
-
java怎么批量实现发新浪博客
-
hibernate 删除时 怎么设置 其它表的外键 置空
-
浏览器缓存的高阶有关问题
-
java的IO有关问题·求大神们指教
-
运行 *jar 报错?解决思路
-
东软OR群硕?解决方法
-
jquery 判断数目字区间不重复