Unable to instantiate Action,

@org.springframework.beans.factory.annotation.Autowired(required=true)
defined for 'takeTime_findAll' in namespace '/'Error
框架整合,注解错误,检查dao service action的注解
Unable to instantiate Action, cn.test.bos.web.action.base.TakeTimeAction,  defined for 'takeTime_findAll' in namespace '/'Error creating bean with name 'cn.test.bos.web.action.base.TakeTimeAction': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private cn.test.bos.service.base.TakeTimeService cn.test.bos.web.action.base.TakeTimeAction.takeTimeService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [cn.test.bos.service.base.TakeTimeService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

猜你喜欢

转载自blog.csdn.net/weixin_42209307/article/details/81005464