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标签找不到
相关文章
相关标签/搜索