两个文件内容如下:
<?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="dialect">net.sf.hibernate.dialect.MySQLDialect</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/person</property>
<property name="connection.username">root</property>
<property name="connection.password">123321</property>
<mapping resource="com/Customer.hbm.xml" /></session-factory></hibernate-configuration>
<?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="dialect">net.sf.hibernate.dialect.MySQLDialect</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/person</property>
<property name="connection.username">root</property>
<property name="connection.password">123321</property>
<mapping resource="com/Customer.hbm.xml" /></session-factory></hibernate-configuration>
解决方案 »
- ajax如何接收回调函数的返回值...在线等
- jxl生成Excel时,负数为文本问题
- static 数据库
- 想学EJB寻求EJB写的系统学习一下,分不多了只有100分
- jsp异常??
- TomCat数据源配置失败
- tomcat的配置问题
- 如何在javabean中获取request对象
- 使用struts 怎么才能在执行完js校验页面的信息,发现不全的情况下,不让页面提交到Action中
- 从网上下载一个关于oracle的jdbc驱动,不知怎么安装,急用????????????????谢谢了
- 基础问题??? 我该如何调用这个方法哪?
- ibatis连数据库的一个问题。。(我是菜鸟,请高手们前来指导呀。。)
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.connection.url=jdbc:mysql://localhost:3306/person
hibernate.connection.username=root
hibernate.connection.password=123321
hibernate.show_sql=true
这是2.0的
3.0这句应该是
org.hibernate.dialect.MySQLDialect
这就是2.0和3.0的区别了
好郁闷呀