67,512
社区成员
发帖
与我相关
我的任务
分享
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AdminAction': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.zwd.service.UserService com.zwd.action.AdminAction.userService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.zwd.dao.BaseDao com.zwd.service.impl.BaseServiceImpl.baseDao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.zwd.dao.BaseDao] is defined: expected single matching bean but found 2: [moneyDao, userDao]
@Component("moneyDao")
public class MoneyDaoImpl extends BaseDaoImpl<Money> implements MoneyDao {
}
@Component("userDao")
public class UserDaoImpl extends BaseDaoImpl<User> implements UserDao {
}