问题描述:
org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'org.springframework.transaction.interceptor.TransactionInterceptor#0' must be of type [org.aopalliance.aop.Advice], but was actually of type [org.springframework.transaction.interceptor.TransactionInterceptor]
解决方案:
将applicationContext.xml中的<tx:annotation-driven transaction-manager="transactionManager" />这一行注释掉
再运行,通过了。 但存在的问题是 事务不能工作了。
再解决: