`
alone_knight
  • 浏览: 122061 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论
收藏列表
标题 标签 来源
监听器如何获取
Spring获取自身配置文件的工具类:WebApplicationContextUtils 当 Web 应用集成 Spring 容器后:

但通过位于 org.springframework.web.context.support 包中的WebApplicationContextUtils 工具类获取 WebApplicationContext 更方便:

WebApplicationContext wac =WebApplicationContextUtils.getWebApplicationContext(servletContext);
Global site tag (gtag.js) - Google Analytics