整个过程,没有错呢
信息: 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
全是调试信息
你最好把你的 /hibernate.cfg.xml 贴出来看看,目前来看没有报错。我怀疑你的sessionfactory没有创建成功 --2012-3-7 12:00:32 org.hibernate.cfg.Configuration doConfigure
信息: Configured SessionFactory: null
如图