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

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 ;  

猜你喜欢

转载自blog.csdn.net/xiaozhegaa/article/details/79836459