标签:web class 实现 https static his nfa cep http
@WebServlet("/BaseServlet")
public class BaseServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
public void init() throws ServletException {
super.init();
WebApplicationContextUtils.getWebApplicationContext(getServletContext()).getAutowireCapableBeanFactory().autowireBean(this);
}
}
需要注入的servlet可以通过继承BaseServlet 即可实现。
标签:web class 实现 https static his nfa cep http
原文地址:http://www.cnblogs.com/Onedayzk/p/7344239.html