摘要:
刚刚在整合SSH时碰到了这样一个问题:当我用junit测试时不会报任何异常,数据也都能得到public class BuyerTest {@BeforeClasspublic static void begin() throws Exception{}@Testpublic void save(){ Configuration config=new AnnotationConfiguration().configure(); SessionFactory sf=config.buildSessionFactory(); Session session=sf.openSession(); ... 阅读全文