Thred类中 注入service

WebApplicationContext ctx=ContextLoader.getCurrentWebApplicationContext();
		ctx.getBean("xxxxService");

猜你喜欢

转载自durbao.iteye.com/blog/2216795