springboot ssm项目外部类引用

一、外部实体类引用service层app ApplicationContext appCtx = SpringContextUtil.getApplicationContext();ide XXXService xxxService = appCtx.getBean(XXXService.class);//要调用的serviceget 二、@Component类中引用service层io X
相关文章
相关标签/搜索