网上找的各种注解方式都无效,最后只能用spring上下文获取接口类如下:
ApplicationContext context = ContextLoader.getCurrentWebApplicationContext(); IBaseQueryBS iBaseQueryBS = context.getBean(IBaseQueryBS.class);