IBatis使用cacheModel实现数据查询缓存
可以使用jsp手动清空缓存
<%@page import="com.ibatis.sqlmap.client.SqlMapClient"%> ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(request.getSession().getServletContext());SqlMapClient client = (SqlMapClient) context.getBean("sqlMapClient"); client.flushDataCache();
时间: 2024-10-25 02:59:39