@Override
public void init(ServletConfig config) throws ServletException {
super.init(config);
//servlet 中bean注入 需要加入:
SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, config.getServletContext());
}
servlet 中bean注入
最新推荐文章于 2022-08-01 16:56:37 发布