Spring,Mybatis整合中测试类报错:org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean name
今天在练习spring和mybatis整合的一个测试遇到了一个报错:org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named goodsServiceImpl’ available我在进行测试练习的时候,单元测试:这是TestBase进行单元测试,出现报错原因:没有名为“ goodsServiceImpl”的bean解决方法:既然没有这个那么就去给它建一个,但是要添加@Bean注解我