|  | 
 
| INFO - JDK 1.4+ collections available INFO - Loading XML bean definitions from file [F:\workspace\selectcourse\src\applicationContext.xml]
 INFO - Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=27432475]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [dataSource,transactionManager,userDAOProxy,jdbcTemplate,adminDAO,studentDAO]; root of BeanFactory hierarchy
 INFO - 6 beans defined in application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=27432475]
 INFO - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@116471f]
 INFO - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@e5855a]
 INFO - Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [dataSource,transactionManager,userDAOProxy,jdbcTemplate,adminDAO,studentDAO]; root of BeanFactory hierarchy]
 INFO - CGLIB2 available: proxyTargetClass feature enabled
 
 上面是调试用JUNIT测试输入的
 测试没有问题
 数据操作没有成功
 下面是测试方法
 public void testSave(){
 
 Student stu = new Student();
 stu.setSNum("20070101");
 stu.setSPwd("870926");
 stu.setSNum("zhoule");
 stu.setSSerice("计算机系");
 stu.setSSpecial("计算机与科学");
 stu.setSYear(4);
 
 ApplicationContext context = new FileSystemXmlApplicationContext("src/applicationContext.xml");
 StudentDAO dao = (StudentDAO)context.getBean("studentDAO");
 if(dao.save(stu)){
 System.out.println("添加成功!");
 }
 数据什么也没有
 谁能告诉我是怎么回事吗?
 | 
 |