摘要:
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
阅读(2458)
评论(0)
推荐(0)
浙公网安备 33010602011771号