• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






phoebus0501

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2011年5月17日

web项目中通过spring获得ApplicationContext
摘要: 方法一、 @Override public void sessionDestroyed(HttpSessionEvent event) { ServletContext context = event.getSession().getServletContext(); ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(context); LoginTempService loginTempService = (loginTempService)ctx.getBean("loginT 阅读全文
posted @ 2011-05-17 11:45 phoebus0501 阅读(2009) 评论(0) 推荐(0)
 
转:ibatis的cacheModel
摘要: cachemodel是ibatis里面自带的缓存机制,正确的应用能很好提升我们系统的性能。使用方法:在sqlmap的配置文件中加入<cacheModel type="LRU" id="article_cache" readOnly="true" serialize="false"> <flushInterval hours="24"/> <flushOnExecute statement="articleLists.insertArticle"/ 阅读全文
posted @ 2011-05-17 09:12 phoebus0501 阅读(3988) 评论(0) 推荐(0)