org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.zhl.sms.intf.AirlineIntf] is defined: expected single matching bean but found 2: [airlineImpl, AirlineIntf]
一个是接口,一个是实现类,bean我也只配了一个,怎么找到两个呢?
org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.zhl.sms.intf.AirlineIntf] is defined: expected single matching bean but found 2: [airlineImpl, AirlineIntf]
一个是接口,一个是实现类,bean我也只配了一个,怎么找到两个呢?
4 回答1.4k 阅读✓ 已解决
4 回答1.2k 阅读✓ 已解决
1 回答2.6k 阅读✓ 已解决
2 回答730 阅读✓ 已解决
2 回答1.7k 阅读
2 回答1.7k 阅读
2 回答1.3k 阅读
可以将你的XML或者注解的代码贴出来吗。