HTTP Status 500 - Unable to instantiate Action, depAction, defined for 'dep_list' in namespace '/'Error creating bean with name 'depAction' defined in file [H:\eclipse\workspace\erp_parent\erp_web\target\classes\applicationContext_action.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type [com.sun.proxy.$Proxy48 implementing
cn.itcast.erp.biz.IDepBiz,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [cn.itcast.erp.biz.impl.DepBiz] for property 'depBiz'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [com.sun.proxy.$Proxy48 implementing cn.itcast.erp.biz.IDepBiz,org.springframework.aop.SpringProxy,org.springframework.aop.framework.Advised] to required type [cn.itcast.erp.biz.impl.DepBiz] for property 'depBiz': no matching editors or conversion strategy found
注意depAction类中获取对象的注入是接口,弄错成实现类了
如:
public void setDepBiz(DepBiz depBiz) {
this.depBiz = depBiz;
}
红色处应该是IDepBiz