知道美河 | 上传资料 | VIP申请 | 精品课程 | 资料搜索 | 问题反馈 | 会员手册 | 积分消费 | 积分充值 | 帐号保护
美河学习学习在线赞助VIP

美河学习在线(主站) eimhe.com

 找回密码
 建立账号
查看: 9751|回复: 0

[求助] Spring问题能帮忙看看吗

[复制链接]
发表于 2007-4-19 23:39:30 | 显示全部楼层 |阅读模式
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("添加成功!");
                }
数据什么也没有
谁能告诉我是怎么回事吗?
您需要登录后才可以回帖 登录 | 建立账号

本版积分规则

 
QQ在线咨询

QQ|小黑屋|手机版|Archiver|美河学习在线 ( 浙网备33020302000026号 )

GMT+8, 2025-5-7 16:48

Powered by Discuz!

© 2001-2025 eimhe.com.

快速回复 返回顶部 返回列表