hibernate新手问题 根组件类型为“hibernate-configuration”,但被声明为“hibernate-config”。你的xml文件里面这个地方写错了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Caused by: org.xml.sax.SAXParseException: 根组件类型为“hibernate-configuration”,但被声明为“hibernate-config”。 是不是你把hibernate.cfg.xml文件里的<hibernate-configuration>写成了<hibernate-config>?你自己检查看看 我再把我的XML贴下,看得清楚些,感觉没啥错<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE hibernate-config PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><hibernate-configuration> <session-factory> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="connection.url">jdbc:mysql://localhost:3306/hibernate</property> <property name="connection.username">root</property> <property name="connection.password"></property> <mapping resource="hello/user.hbm.xml"/> </session-factory></hibernate-configuration> jsp自定标签 支持java脚本 有用过smsLib开源项目发短信的兄弟吗?谢谢 java 调用net webservice传入参数问题 仙剑奇侠传online 天空的味道 TOMCAT的日志问题 删除索引报IO错误 couldn't delete commit.lock 求大神帮忙解密个md5啊 导师给我出难题,J2EE做网站 org.springframework.beans.factory.BeanDefinitionStoreException java连接oracle数据库的错误!大吓帮忙 web services服务端是 https的 客户端可以与他建立联系么?
>?你自己检查看看
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-config PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/hibernate</property>
<property name="connection.username">root</property>
<property name="connection.password"></property> <mapping resource="hello/user.hbm.xml"/>
</session-factory></hibernate-configuration>