网上找的各种注解方式都无效, 最后只能用 spring 上下文获取接口类如下:
ApplicationContext context = ContextLoader.getCurrentwebApplicationContext();IBaseQueryBS iBaseQueryBS = context.getBean(IBaseQueryBS.class);
来源: http://www.bubuko.com/infodetail-3277462.html