ServletContext sc = this.getServletContext();
WebApplicationContext wac = WebApplicationContextUtils.getWebApplicationContext(sc);
this.serviceFacade = (XlycServiceFacade) wac.getBean("XlycServiceFacade");
t = new Timer();
TimerCancelorder tco = new TimerCancelorder();
tco.setServiceFacade(this.serviceFacade);
t.schedule(tco, 0,60*60*1000);
servlet直接调用spring的serivce方法
最新推荐文章于 2018-11-19 23:58:00 发布