映射器配置文件
测试代码
@Test
public void test2(){
UserDao dao = ac.getBean("userDao",UserDao.class);
System.out.println(dao);
List
System.out.println(users);
for(User u : users){
//System.out.println(u);
}
}
运行期间没报错,结果:
映射器对象获取成功了的,就是结果集为null值
org.apache.ibatis.binding.MapperProxy@28ffa4
[null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null]