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