Q: ringframework.beans.factory.BeanCreationException: Error creating bean with name ‘registAction’: Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException:
Could not autowire field: public com.communication.biz.impl.RegistImpl com.communication.action.RegistAction.registImpl;
nested exception is java.lang.IllegalArgumentException:Can not set com.communication.biz.impl.RegistImpl field com.communication.action.RegistAction.registImpl to com.sun.proxy.$Proxy17
A: 在@Autowired自动注入时, 只能用接口不能用接口的实现类。
在Controller层无法注入Service层的对象
最新推荐文章于 2023-06-13 17:36:57 发布