**
java.lang.IllegalStateException: Cannot convert value of type
java.lang.IllegalStateException: Cannot convert value of type[com.sun.proxy.$Proxy36 implementingcom.czj.erp.biz.IDepBiz,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [com.czj.erp.biz.impl.DepBiz] for property ‘dBiz’: no matching editors or conversion strategy found**
在使用spring进行aop开发的时候 需要设置proxy-target-class这个属性是决定你基于哪个接口还是类被代理,如果proxy-target-class=“true”是基于类被代理
我在遇到这个问题的时候在上aop:config</aop:config>添加上proxy-target-class=“true”
我的情况
<aop:config proxy-target-class=“true” >
<aop:pointcut id=“serviceMethod” expression=“execution(* com.czj.erp.biz.impl..(…))”/>
<aop:advisor pointcut-ref=“serviceMethod” advice-ref=“advice” />
</aop:config>