Failed to convert property value of type [com.sun.proxy.$Proxy27 implementing com.ibeifeng.se

来源:互联网 发布:python exit 1 编辑:程序博客网 时间:2024/05/19 02:06

.TypeMismatchException:

Failed to convert property value of type    [com.sun.proxy.$Proxy27 implementing     com.ibeifeng.service.IEmployeeService,com.ibeifeng.service.IService,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type 



意思就是说不能注入 把 proxy 代理对象 注入到 service 的 Impl 实现类 中; 而需要使用接口编程;  也就是需要用  IemployeeSerice 来接收代理对象 ;改正后ok ; 

0 0