Autowired Null Pointer Exception
问题 I have a filter to save requests to DB. But I get NullPointerException on autowired field: inboundRequestLogStore. I've tried the suggestion from Using some beans in Filter bean class? (I've added SpringBeanAutowiringSupport.processInjectionBasedOnServletContext(this, filterConfig.getServletContext()); to the filter init method and defined a bean in my root-context.xml ) and now it works for the RequestLogFilter class. But, in the InboundRequestLogStore class I have another autowired filed