servlert中处理spring Bean

public class InitServlet extends HttpServlet {

	private static final long serialVersionUID = -

5826096764263027718L;

	public void destroy() {
		super.destroy();
	}

	public void init() throws ServletException {
		super.init();
//		

SpringBeanAutowiringSupport.processInjectionBasedOnServletCo

ntext(this,
//				getServletContext());
//		List<TProductIssue> list = 

proService.getCTRIPTProductIssue();
//		System.out.println(list.size());
//		WebApplicationContext ctx 

=WebApplicationContextUtils.getWebApplicationContext

(getServletContext());
//		Sender sender = (Sender) ctx.getBean

("sender");
//		sender.sendInfo("testkey", "testvalue");

	}
}

servlert中处理spring Bean,布布扣,bubuko.com

servlert中处理spring Bean

上一篇:Java图像处理最快技术:ImageJ 学习第一篇


下一篇:呕心沥血的java复杂项目(包括自定义应用层协议、CS多线程、多客户端登录、上下线提醒等等)