Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'studentServiceImpl' is expected to be of type 'com.qf.service.StudentServiceImpl' but was actually of type 'com.sun.proxy.$Proxy23'
报错如下:
解决方法:在xml配置文件中设置
<aop:config proxy-target-class="true"></aop:config>