日期:2014-05-17 浏览次数:20756 次
<!-- 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窗体程序解决方法
- 在实际开发项目中 ,位运算主要处理什么有关问题
- ,实在找不出来异常在哪儿
- 郁闷,JS被缓存,怎么让浏览器不缓存
- JSP页面缓存技术,该怎么解决
- hibernate+Struts+JSP+MySQL+Tomcat(5.5.17)的一个项目中遇到一个很奇怪的关于Tomcat的有关问题,麻烦高手详阅内容和能给予帮助,多谢!
- 初学者学servlet遇到有关问题,思考了2天还没解决
- 帮忙猜字游戏有关问题,给重分!
- JSP用户登录界面,三种用户,用户登录不了,如何解决
- SSH异常.求高人解决
- 为什么错误处理产生死循环
- 调用javabean的有关问题
- 查验大家的finally学的程度的一段代码,你能全部答对吗
- 菜鸟问jsp中代码执行顺序是怎样的
- [调查]web程序员中,有多少位是站长? 留个名吧,该怎么解决
- SQL语言错误?关于UPDATE
- 在线考试系统需求和项目架构解决方法
- 小弟我是不是不适合团队合作!