【发布时间】:2011-01-25 21:03:50
【问题描述】:
我可以使用
在我的 Servlet 中访问 Spring beanWebApplicationContext springContext =
WebApplicationContextUtils.getWebApplicationContext(getServletContext());
在 Servlet 的 init 方法中。
我想知道 servlet 过滤器是否有与 WebApplicationContext 等效的方法?
另外,是否可以在标签类中访问 Spring bean?
【问题讨论】:
标签: spring servlets tags javabeans servlet-filters