我定义了一个借口Service
定义一个类ServiceA implements Service
在一个嘞中DaoA extends ServiceA
在action中Service a;
在set方法上@Resource(name="daoA")
总是出现这种错误;直接Service a=bew DaoA();又没错
到底是为什么,
Error creating bean with name 'customerRegisterAndModifyServicer': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'customerRegisterAndModifyDao' must be of type [myshop.all.services.Impl.RegisterValidateService], but was actually of type [$Proxy11]
缥缈止盈