spring-mvc.xml中如下:
/context:component-scan
我明明扫描了所有的包为什么还是找不到,出现如下异常:
九月 03, 2017 4:41:52 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Allocate exception for servlet spring
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.lyj.bookmanage.service.IUserService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}