一个接口有两个实现类,spring注入时报错。报错:No unique bean of type [com.test.service.EmployeeService] is defined: expected single matching bean but found 2
原文链接:http://www.cnblogs.com/smileLuckBoy/p/5801678.html
解决办法:指定注入的实现类
附:http://www.oschina.net/question/1158633_229054 有空测试resource注解
附2:参见spring 3.x企业开发实战 4.10.3