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)}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章