大神幫我看看,到底怎么了?
三月 13, 2017 6:00:08 下午 org.hibernate.annotations.common.Version <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}
三月 13, 2017 6:00:08 下午 org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.2.4.Final}
三月 13, 2017 6:00:08 下午 org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
三月 13, 2017 6:00:08 下午 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
三月 13, 2017 6:00:08 下午 org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
三月 13, 2017 6:00:08 下午 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
三月 13, 2017 6:00:08 下午 org.hibernate.cfg.Configuration addResource
INFO: HHH000221: Reading mappings from resource: Student.hbm.xml
2017-03-26
hibernate.cfg.xml文件中缺了這句話
<property name="hbm2ddl.auto">create</property>
create換成update也行
為什么這樣呢?我們用MyEclipse的人總不會完全按照視頻來操作,在網上的帖子、論壇中,生成hibernate.cfg.xml配置文件的步驟與本教程1-7中不同,是自動生成的,也就導致沒有1-7中關鍵的那句話。
所以要自己添加上。
2017-03-25
我遇到一樣的問題。你解決了嗎?
2017-03-14
INFO: HHH000206: hibernate.properties not found