一天一小步,人生一大步。
├学会总结╀学会记录╀学会生活┦
摘要: 1,问题:An AnnotationConfiguration instance is required to use <mapping class="vo.Student"/>解答:错误:SessionFactory factory = new Configuration().configure().buildSessionFactory(); //这句是用映射文件为xml的 正确:SessionFactory factory = new AnnotationConfiguration().configure().buildSessionFactory();/ 阅读全文
posted @ 2012-12-17 22:49 .Xm 阅读(2437) 评论(0) 推荐(0) 编辑