Error creating bean with name ‘xxxxxController’: Unsatisfied dependency expressed through field ‘xxxxxMapperService’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.xxx.service.xxxxService’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
记录下这个问题:
SSM整合的时候,由于没有扫描到包造成的
<context:component-scan base-package="com.sict.service" />
在配置文件加上这个就好了