- jsp获取spring容器
<%
ServletContext sc = this.getServletConfig().getServletContext();
ApplicationContext ac2 = WebApplicationContextUtils.getWebApplicationContext(sc);
RedisService redisService=(RedisService)ac2.getBean("redisService");
%>
- service demo
@Service("redisService")
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。