Java 调试错误
「已注销」 2017-05-17 09:52:30 调试时出现这样的错误,该如何解决
Unable to instantiate Action, test.NoticeAction, defined for 'ListNotice' in namespace '/notice'Error creating bean with name 'test.NoticeAction': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.gx.library.service.impl.NoticeService com.gx.library.controls.NoticeAction.noticeService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.gx.library.service.impl.NoticeService] 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)}