- 博客(9)
- 收藏
- 关注
原创 redis集群问题及解决
工具1.安装vimyum -y install vim*2.安装rvmcurl -L get.rvm.io | bash -s stable --ruby如果报错gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3curl -L get.
2016-12-28 09:24:49 669
转载 Redis集群部署文档(centos6系统)
(要让集群正常工作至少需要3个主节点,在这里我们要创建6个redis节点,其中三个为主节点,三个为从节点,对应的redis节点的ip和端口对应关系如下)127.0.0.1:7000 127.0.0.1:7001127.0.0.1:7002127.0.0.1:7003127.0.0.1:7004127.0.0.1:7005 1:
2016-12-28 09:20:15 372
原创 笔记而已
function response(){$.ajax({type:"post",url:"${pageContext.request.contextPath}/jsonTest.action",contentType:"application/json;charset=utf-8",data:'{"username":"周振均","address":"798"}',befo
2016-07-05 22:10:26 334
原创 获得json数据
//获取订单信息Orders orders =ordersService.getById(model.getId());//连接物流接口String uri= "http://apis.haoservice.com/lifeservice/exp?"+"key=ef75f10b381c40038128e5cfd6e3c7a4" +""+"&com="+orders.getW
2016-07-05 19:50:11 442
转载 JS时间(日期)比较或相减
JS时间(日期)比较或相减 :此文均来自网上,可行,只供参考//JAVASCRIPT中 日期相减很麻烦 ,现在有现成的实现方法,拷贝过去就可以用了,方便//调用该方法(主方法) function dateDiff(date1, date2){ var type1 = typeof date1, type2 = typeof date2;
2016-05-11 10:45:11 704
转载 js定时器(执行一次、重复执行)
1,只执行一次的定时器 复制代码 代码如下: //定时器 异步运行 function hello(){ alert("hello"); } //使用方法名字执行方法 var t1 = window.setTimeout(hello,1000); var t2 = window.setTimeout("hello()",3000);//使用字符串执行方法
2016-05-11 10:41:03 4935
转载 An error occurred at line: 307 in the generated java file The code of method _jspService (HttpServle
It is possible that after an upgrade you may encounter this error on some of the more complex pages of Asset Bank, such as the Asset Detail page. If you see a stack trace on the screen the same as the
2016-05-03 10:46:34 2030
转载 spring定时器
用到了spring的定时任务的功能,网上查资料,并且实际运用了一下,觉得spring还是很智能化的,只需要配置一下配置文件就可以了,下面的这篇文章我觉得还是很好的,摘录下来,供以后参考用 package util;import org.apache.log4j.*;public class TaskJob { public static Logger log = Log
2016-03-04 11:03:23 305
原创 关于获得html页面的坐标
方法1.用JavaScript获取document.onmouseover=function(event){var node=document.getElementById("div1");x=event.clientX;y=event.clientY;if(y+0>100){node.className="open";}else{node.className="c
2016-01-10 15:40:28 1970
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人