日期:2014-05-17 浏览次数:20764 次
<!-- 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>
![]()
推荐阅读更多>
- HQL异常
- java 多线程 安全有关问题
- Sun公司认证的SCJP证书有用吗?解决方法
- 像下边的种下来框如何从前台搜集所选的年月期间作为查询条件?请各位大神帮助啊
- Tomcat+struts为何不能上传2G以上的文件
- request.getRealPath()的有关问题
- 一个含包的HelloWorld的java程序可以用jcreator编译运行但是不能用cmd运行不成功解决思路
- 为何不会rollback.解决思路
- List遍历输出有关问题,弱有关问题
- 100分求救!fat32格式磁盘配置tomcat的有关问题
- 怎么把filter改写成spring mvc里面的interceptor
- 关于查询数据库,返回实体的有关问题
- 关于servlet向iframe页面传值有关问题
- 大侠一个J2ME(MIDP2.0)游戏开发下的有关问题
- 一道java面试题目,估计n多人都不会做!用java语言写一段代码,要求计算出一个二叉树单节点(只有一个孩子的节点)的个数.该如何解决
- 单态设计模式有关问题,请问了
- 框架与其说他
- 图片分页的一些有关问题
- log4j中配置mysql数据库出现下列错误
- 精通JAVA都需要些什么素质?解决思路