已引用 attachmentManager 为例
ApplicationContext applicationContext = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext()); AttachmentManager attachmentManager = (AttachmentManager)applicationContext.getBean("attachmentManager");
原文地址:http://www.cnblogs.com/libaoting/p/serviceImpl.html