2 qq 27738675 qq_27738675 于 2016.04.30 13:04 提问

求帮我看看hibernate的问题

2016-4-30 13:01:01 org.hibernate.annotations.common.Version
INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}
2016-4-30 13:01:01 org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.2.4.Final}
2016-4-30 13:01:01 org.hibernate.cfg.Environment
INFO: HHH000206: hibernate.properties not found
2016-4-30 13:01:01 org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
2016-4-30 13:01:01 org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
2016-4-30 13:01:01 org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
2016-4-30 13:01:01 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!
2016-4-30 13:01:01 org.hibernate.cfg.Configuration addResource
INFO: HHH000221: Reading mappings from resource: Teachers/hbm.xml
这是我模仿例子然后报错的信息,能不能帮我看看哪里有问题的

1个回答

fk002008
fk002008   2016.04.30 23:43

hibernate.properties not found

你的properties文件放的位置对吗

qq_27738675
qq_27738675 问题是我用的是hibernate.cfg.xml啊,从头到尾我配置文件里面没有hibernate.properties
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!