hibernate: 在学hibernate:运行时出现这个问题?着了好久不知道问题在那,myeclipse8.6.

2025-02-22 22:09:03
推荐回答(3个)
回答1:

整个过程,没有错呢

信息: Configuration resource: /hibernate.cfg.xml
2012-3-7 12:00:32 org.hibernate.cfg.Configuration addResource
信息: Reading mappings from resource : com/bjsxt/hibernate/model/Student.hbm.xml
2012-3-7 12:00:32 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
信息: Mapping class: com.bjsxt.hibernate.model.Student -> Student
2012-3-7 12:00:32 org.hibernate.cfg.Configuration doConfigure

全是调试信息

回答2:

你最好把你的 /hibernate.cfg.xml 贴出来看看,目前来看没有报错。我怀疑你的sessionfactory没有创建成功 --2012-3-7 12:00:32 org.hibernate.cfg.Configuration doConfigure
信息: Configured SessionFactory: null

回答3:

如图