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]
2 回答

慕桂英3389331
TA貢獻(xiàn)2036條經(jīng)驗(yàn) 獲得超8個(gè)贊
studentDaoImpl實(shí)現(xiàn)類在spring配置文件中是不是沒(méi)有配置

HUH函數(shù)
TA貢獻(xiàn)1836條經(jīng)驗(yàn) 獲得超4個(gè)贊
你肯定是沒(méi)有注入進(jìn)去啊.
1. 查看配置們見;
2. 你的Service有沒(méi)有注入Dao.
添加回答
舉報(bào)
0/150
提交
取消