哪位好心人幫我看看這是什么錯誤
十一月 28, 2016 3:39:07 下午 org.hibernate.annotations.common.Version <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}
十一月 28, 2016 3:39:07 下午 org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.2.4.Final}
十一月 28, 2016 3:39:07 下午 org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
十一月 28, 2016 3:39:07 下午 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
十一月 28, 2016 3:39:07 下午 org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
十一月 28, 2016 3:39:07 下午 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
十一月 28, 2016 3:39:07 下午 org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity
WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
十一月 28, 2016 3:39:08 下午 org.hibernate.cfg.Configuration addResource
INFO: HHH000221: Reading mappings from resource: Students.hbm.xml
2016-12-05
你那個不是錯誤信息吧,只是一些加載信息什么的吧,這個是正常的啊。要真的錯了的話,應(yīng)該告訴你什么原因以及在哪個位置出錯。
2016-11-28
你的配置文檔沒配錯把。。Students.hbm.xml文件錯誤配置了。。給你參考下我的<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 2016-11-28 14:27:43 by Hibernate Tools 3.5.0.Final -->
<hibernate-mapping>
??? <class name="books.Book" table="BOOK">
??????? <id name="id" type="java.lang.Integer">
??????????? <column name="ID" />
??????????? <generator class="native" />
??????? </id>
??????? <property name="booksName" type="java.lang.String">
??????????? <column name="BOOKSNAME" />
??????? </property>
??? </class>
</hibernate-mapping>