错误提示:Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type ‘com.Ana.demo.service.userService’ available: expected single matching bean but found 2: userServiceFestival,userServiceNormal
原因:
当想要为类实现不同的功能实现类的时候,此时测试类不知道应该选择哪一个实现类,会出现报错,会产生歧义性
解决方法:
添加不同的限定符