Spring No qualifying bean of type ' ' at least 1bean

针对该异常 主要为Spring 的扫描器没有扫到该bean 

可在配置文件中检查扫描的位置

 

扫描文件的配置

<context:component-scan base-package="com.xquant.project.xir.initialize.*.service;
com.xquant.project.xir.initialize.*.*.service;"
name-generator="com.xquant.platform.component.spring.AnnotationBeanNameGenerator"/>



单独配bean
<bean id="TrdGroupServiceImpl" class="com.xquant.project.xir.common.trdgroup.service.impl.TrdGroupServiceImpl" name="TrdGroupServiceImpl"></bean>
posted @ 2018-06-21 19:23  章齐斌  阅读(280)  评论(0编辑  收藏  举报