3
回答
IDEA导入eclipse spring mvc工程项目后单元测试一直报错,但是工程整体可以正常运行,求解
极速云服务器,低至1.04元/天>>>   

问题描述:

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

1、junit配置:

2、idea iml配置:

3、配置文件目录:

 

刚从eclipse转到idea,好心人帮忙看下,谢谢

<无标签>
举报
RunACoding
发帖于2个月前 3回/51阅
顶部