[置顶] spy memcached spring demo

摘要: spring 配置文件 -->测试类import org.springframework.context.ApplicationContext;import org.springframework.context.support.ClassPathXmlApplicationContext;impo... 阅读全文

posted @ 2014-07-16 10:58 01工作室 阅读(496) 评论(0) 推荐(0) 编辑

2014年8月7日

ajaxFileUpload异步上传资源,onchange多次调用问题的解决方案

摘要: 一、上传文件的做法1 前端代码upload js方法function upload() { alert("haha"); $.ajaxFileUpload({ url : "xxxx", secureuri : false, fileEl... 阅读全文

posted @ 2014-08-07 15:30 01工作室 阅读(6714) 评论(0) 推荐(3) 编辑

2014年8月4日

LRU近期最少使用算法

摘要: LRU是Least Recently Used 近期最少使用算法,一种页面置换算法,其实现较为简单,Java实现代码如下 1 import java.util.LinkedList; 2 import java.util.List; 3 4 public class LRU { 5 6 ... 阅读全文

posted @ 2014-08-04 10:08 01工作室 阅读(235) 评论(0) 推荐(0) 编辑

2014年6月20日

easyui将查询参数绑定到分页控件

摘要: 一 在进行条件查询(带分页)时,有时候会出现一种情况:根据查询条件查找得到第一页数据,当你点击下一页后,不会携带查询条件进行分页。解决方案:获取查询条件 var data=$('#search').serializeJson();将查询条件绑定到分页控件上var queryParams = $('#... 阅读全文

posted @ 2014-06-20 16:36 01工作室 阅读(199) 评论(0) 推荐(0) 编辑

Spring MVC中拦截器HandlerInterceptorAdapter中的preHandle方法

摘要: 拦截器:顾名思义,就是对请求进行拦截,做一些预处理、后处理或返回处理的操作Spring MVC中使用拦截器的方法,继承HandlerInterceptorAdapter类,并根据需求实现其中的preHandle方法(预处理)、postHandle方法(返回处理),afterCompletion方法(... 阅读全文

posted @ 2014-06-20 11:01 01工作室 阅读(9834) 评论(0) 推荐(1) 编辑

导航