public void init() throws ServletException{
WebApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
studentService = (IStudentService)context.getBean("studentService");
}
【Spring笔记】12、Servlet容器与SpringIoC容器,及二者之间的桥梁
猜你喜欢
转载自blog.csdn.net/kuaileky/article/details/89606072
今日推荐
周排行