我只是通过添加使它起作用
SpringBeanAutowiringSupport.processInjectionbasedOnCurrentContext(this);
我不确定为什么即使我尝试添加显式限定词也应该这样做。现在代码看起来像
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { SpringBeanAutowiringSupport.processInjectionbasedonCurrentContext(this); @SuppressWarnings("unchecked") Map<String, String[]> parms = request.getParameterMap(); if (parms.containsKey("token")) {


