ServletContext sc = req.getSession().getServletContext();
XmlWebApplicationContext cxt = (XmlWebApplicationContext) WebApplicationContextUtils.findWebApplicationContext(sc);
AppVerService appVerServiceImpl = (AppVerService) cxt.getBean("appVerServiceImpl");
在Servlet的Filter中获取Spring注入的Bean
最新推荐文章于 2024-03-28 03:13:23 发布
1718

被折叠的 条评论
为什么被折叠?



