WebApplicationContext ctx=WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
需要继承 HttpServlet
注解 注入ioc容器 当类名前两位是大写 id为全名,反正id为首字母小写
WebApplicationContext ctx=WebApplicationContextUtils.getWebApplicationContext(this.getServletContext());
需要继承 HttpServlet
注解 注入ioc容器 当类名前两位是大写 id为全名,反正id为首字母小写