Spring @Qualifier not working when bean is in another jar file
问题 I have a number of Spring beans, some of which are in a shared library jar. I can't seem to get @Qualifier to work. I have default-autowire set to "byType" , this is using Spring 3.1.0.M2 and running as a standalone executable. If I remove "TestTwoBean" from the shared library the project executes as expected. myproj-shared-lib.jar: @Service public class TestOneBean implements ITestBean { } @Service public class TestTwoBean implements ITestBean { } myproj.jar: @Service public class