首页 新闻 会员 周边

用spring进行向数据库添加数据时报错

0
[已解决问题] 解决于 2013-03-13 09:43

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'studentDaoImpl' defined in file [E:\Myeclipse workse\JbcbtemplateXMLTranction\WebRoot\WEB-INF\classes\com\gem\dao\impl\StudentDaoImpl.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'txAdvice' must be of type [org.aopalliance.aop.Advice], but was actually of type [org.springframework.transaction.interceptor.TransactionInterceptor]

打酱油的茬的主页 打酱油的茬 | 初学一级 | 园豆:117
提问于:2013-01-24 11:52
< >
分享
最佳答案
0

studentDaoImpl实现类在spring配置文件中是不是没有配置

奖励园豆:5
发表是最好的记忆 | 菜鸟二级 |园豆:286 | 2013-01-28 18:31

谢谢!已经解决了

打酱油的茬 | 园豆:117 (初学一级) | 2013-02-21 17:02
其他回答(1)
0

你肯定是没有注入进去啊.

1. 查看配置们见;

2. 你的Service有没有注入Dao.

chengcheng222e | 园豆:204 (菜鸟二级) | 2013-02-05 14:26

多谢!已经解决好了

支持(0) 反对(0) 打酱油的茬 | 园豆:117 (初学一级) | 2013-02-21 17:03
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册