http://hjy2099.iteye.com/blog/290591
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
import javax.servlet.ServletContext; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.web.context.ServletContextAware; /** * @作者 黄嘉寅 * @功能 客户端与服务端数据传输接口 * @日期 2008-8-28 */ public class SysInterface implements ApplicationContextAware,ServletContextAware{ /** * 功能 : 实现 ApplicationContextAware接口,由Spring自动注入 Spring上下文对象 * **/ public void setApplicationContext(ApplicationContext actx) throws BeansException { } /** * 功能 : 实现 ServletContextAware接口,由Spring自动注入 系统上下文对象 * **/ public void setServletContext(ServletContext sctx) { } } |