Cannot convert value of type 'com.sun.proxy.$Proxy10 implementing com.shuai.

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>

注意黑色字体

猜你喜欢

转载自blog.csdn.net/sinat_37064286/article/details/83307568
今日推荐