Accessing Spring beans from servlet filters and tags - Stack Overflow
For filters - use Filter.init():
public void init(FilterConfig config) { WebApplicationContext springContext = WebApplicationContextUtils.getWebApplicationContext(config.getServletContext()); }Read full article from Accessing Spring beans from servlet filters and tags - Stack Overflow
No comments:
Post a Comment