【Spring笔记】12、Servlet容器与SpringIoC容器,及二者之间的桥梁

	public void init() throws ServletException{
		WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
		studentService = (IStudentService)context.getBean("studentService");
	}

猜你喜欢

转载自blog.csdn.net/kuaileky/article/details/89606072