2 ck zoubo CK_zoubo 于 2017.01.10 21:22 提问

我出现了这个问题,该怎么解决

Exception in thread "main" org.hibernate.MappingException: An AnnotationConfiguration instance is required to use
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1648)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1603)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1582)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1556)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1476)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1462)
at com.bjsxt.hibernate.Test.main(Test.java:16)

1个回答

LD0807
LD0807   2017.01.10 21:47

额,它说你配置没配置对,你看看吧~

CK_zoubo
CK_zoubo 那大神你会配置hibernate+annotation不
11 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!