http://ask.csdn.net/questions/211665 错误和这位兄弟的报错一样。不知道怎么解决
这是测试类:
public class TestEmpDAO {
public static void main(String args[]) {
String conf = "applicationContext.xml";
ApplicationContext ac = new ClassPathXmlApplicationContext(conf);
EmpDAO mapper = ac.getBean("empDAO",EmpDAO.class);
List<Emp> list = mapper.findAll();
for (Iterator it=list.iterator(); it.hasNext();) {
Emp emp = (Emp)it.next();
System.out.println(emp.getEname()+"---"+emp.getJob()+"---"+emp.getSal());
}
}
}