eclipse編譯經過,運行時找不到service

這個問題出現的很奇怪,基本就如題目所說,編譯能夠經過,可是在運行時找不到剛寫的service接口 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'caseActionController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.hibeauty.webbusiness.service.IWebCaseStatusChangeService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(shareable=true, mappedName=, description=, name=, type=class java.lang.Object, authenticationType=CONTAINER)} 一開始我一直認爲是環境問題致使,可是不管是eclipse,仍是idea都會報錯,這就說明應該是代碼問題,最後的緣由也發現了,比較shit,我在寫接口的的實現類時,忘了加Service的註解,致使前端action在引用的時候,經過Resource標籤找不到
相關文章
相關標籤/搜索