criteria.setCacheable(true); 一下是Criteria的底层源代码 /** * Enable caching of this query result, provided query caching is enabled * for the underlying session factory. * * @param cacheable Should the result be considered cacheable; default is * to not cach
最近做Java Web项目,在.jsp页面和servlet之间request和response还是有些混淆,查阅了一些资料,总结如下,方便以后使用: 首先,servlet接口是最基本的,提供的五个方法也不多说了,关键是了解清楚什么是request,什么事response. void destroy() Called by the servlet container to indicate to a servlet that the servlet is being take