ssm之前修改了包名后提示Cannot convert value of type 'com.sun.proxy.$Proxy10 implementing com.shuai.
在applicationContext.xml事务中添加
<aop:config proxy-target-class="true">
<aop:pointcut expression="execution(* *..service.*.*(..))" id="studentPointcut"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="studentPointcut"/>
</aop:config>
注意黑色字体