public class StudentTest {
@Before...
@After...
@Test
public void testSaveStudents(){
//生成学生对象
Students s=new Students(1,"zhangsan","男",new Date(),"wuzhou");
session.save(s);
}
}
在创建s时出现,The constructor Students(int, String, String, Date, String) is undefined报错,是因为什么?
@Before...
@After...
@Test
public void testSaveStudents(){
//生成学生对象
Students s=new Students(1,"zhangsan","男",new Date(),"wuzhou");
session.save(s);
}
}
在创建s时出现,The constructor Students(int, String, String, Date, String) is undefined报错,是因为什么?
2017-05-31
出现Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4错误,把Students.hbm.xml中picture的属性从com.mysql.Blob改成java.sql.Blob就对了
2017-05-31