Spring 使用 一、工具类中使用bean IService service = (IService)ContextLoader.getCurrentWebApplicationContext().getBean(serviceBeanName); View Code