概要:ssm项目中跳转servlet、而且注入service对象html
新建servlet,重点init方法,注解注入,doGet方法web
public void init(ServletConfig config) throws ServletException {this
SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());xml
}htm
配置web.xml文件对象
原文地址:http://www.dabook.top/blog/5.htmlblog