普通类调用service

网上找的各种注解方式都无效,最后只能用spring上下文获取接口类如下:

ApplicationContext context = ContextLoader.getCurrentWebApplicationContext();
IBaseQueryBS iBaseQueryBS = context.getBean(IBaseQueryBS.class);

posted @ 2019-11-07 23:18  天毅ha  阅读(383)  评论(0编辑  收藏  举报