2007-03-11
hibernate.cfg.xml一般配置
关键字: hibernate.cfg.xml一般配置xml 代码
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE hibernate-configuration PUBLIC
- "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
- "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
- <!-- Generated by MyEclipse Hibernate Tools. -->
- <hibernate-configuration>
- <session-factory>
- <property name="connection.username">root</property>
- <property name="connection.password">821226</property>
- <property name="connection.url">
- jdbc:mysql://127.0.0.1:3306/bbs
- </property>
- <property name="dialect">
- org.hibernate.dialect.MySQLDialect
- </property>
- <property name="connection.driver_class">
- com.mysql.jdbc.Driver
- </property>
- <property name="show_sql">true</property>
- <property name="current_session_context_class">thread</property>
- <!-- c3p0setting-->
- <property name="hibernate.connection.provider_class">
- org.hibernate.connection.C3P0ConnectionProvider
- </property>
- <property name="hibernate.c3p0.max_size">20</property>
- <property name="hibernate.c3p0.min_size">5</property>
- <property name="hibernate.c3p0.timeout">120</property>
- <property name="hibernate.c3p0.max_statements">100</property>
- <property name="hibernate.c3p0.idle_test_period">120</property>
- <property name="hibernate.c3p0.acquire_increment">2</property>
- <mapping resource="com/kenshin/domain/TbUser.hbm.xml" />
- </session-factory>
- </hibernate-configuration>
发表评论
- 浏览: 23245 次
- 性别:

- 来自: 广东.佛山.南海

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
读取资源文件乱码
还是不行,我在java文件中的String getMessage方法中messa ...
-- by sebatinsky -
FreeMarker入门指南(详细 ...
谢谢楼主,开始学习freemarker了
-- by h_yz -
Freemarker学习笔记
这么一点东西,太简单了吧!
-- by axiang_2898 -
JXL操作
我想问一下,可以实现这样的功能吗?就是有一个execl模板,里面有些地方要填充数 ...
-- by hsy537 -
在web.xml中添加struts t ...
在<taglib></taglib>上再嵌套<jsp-conf ...
-- by lw223






评论排行榜