請(qǐng)問hibernate連接數(shù)據(jù)庫單元測(cè)試是按照老師的步驟走的,為什么會(huì)出錯(cuò)呢?謝謝...
十一月 07, 2016 4:25:58 下午 org.hibernate.annotations.common.Version <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}
十一月 07, 2016 4:25:58 下午 org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.2.4.Final}
十一月 07, 2016 4:25:58 下午 org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
十一月 07, 2016 4:25:58 下午 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
十一月 07, 2016 4:25:58 下午 org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
十一月 07, 2016 4:25:58 下午 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
十一月 07, 2016 4:25:58 下午 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!
十一月 07, 2016 4:25:58 下午 org.hibernate.cfg.Configuration addResource
INFO: HHH000221: Reading mappings from resource: Students.hbm.xml
2016-11-07
剛剛我也是出現(xiàn)這個(gè)問題,但是試了幾次又可以了,不妨把代碼貼上來看看
2017-06-18
報(bào)的這個(gè)錯(cuò)誤:hibernate.properties not found:
將mysql目錄下的“students.hbm.xml”拖到 src目錄下就可以了
2017-04-26
把cfg.xml和hbm.xml放src里邊就好了
2016-11-08
不知道怎么就好了...謝謝...