随笔 - 6  文章 - 129  trackbacks - 0
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用链接

留言簿(14)

随笔档案(6)

文章分类(467)

文章档案(423)

相册

收藏夹(18)

JAVA

搜索

  •  

积分与排名

  • 积分 - 814925
  • 排名 - 49

最新评论

阅读排行榜

评论排行榜

06 2011 档案

使用JavaScript判断两个日期相差天数
     摘要: var st = new Date(‘2011/01/28 16:22:00’);
var et = new Date(‘2011/03/28 16:22:00’);
if( (et.getTime()-st.getTime())/1000/60/60/24 > 31 ) {
alert("時間間隔不能超出31天");
}  阅读全文

posted @ 2011-06-28 16:29 Ke 阅读(867) | 评论 (0)  编辑

Apache2+Tomcat6+MOD_JK集群
     摘要: o run session replication in your Tomcat 6.0 container, the following steps should be completed:

All your session attributes must implement java.io.Serializable
Uncomment the Cluster element in server.xml
If you have defined custom cluster valves, make sure you have the ReplicationValve defined as well under the Cluster element in server.xml
If your Tomcat instances are running on the same machine, make sure the tcpListenPort attribute is unique for each inst  阅读全文

posted @ 2011-06-16 12:02 Ke 阅读(1244) | 评论 (0)  编辑