- 浏览: 807790 次
- 性别:
- 来自: 上海
-
最新评论
-
zengshaotao:
jstl1point0 写道很好啊,如果有带Session会话 ...
Nginx+Tomcat搭建高性能负载均衡集群 -
jstl1point0:
很好啊,如果有带Session会话的怎么搞呢
Nginx+Tomcat搭建高性能负载均衡集群
文章列表
$(".selectL li a.sbg").attr("class",function(index,oclass){}),其中index是当前对象在获得的对象集合中的索引,oclass是当前对象原来的class属性值
window.parent.frames["topFrame"].location.reload(); 是在frameset集合里,各个frame之间的数据有联系才需要刷新的。刷新时会加载页面。所以需要在被刷新的页面的body的onload属性里加入方法
Date date=new Date(); Sim ...
MySQL 中文字符
- 博客分类:
- MySQL
mysql插入中文报错:incorrect string value:... 进入安装目录下的 my.ini修改配置, 有两个地方需要修改,一个是client端的还有一个是server端的 Sql代码 1. # CLIENT SECTION 2. # ---------------------------------------------------------------------- 3. # 4. # The following options will be read by MySQL client applications. 5. # Note that only c ...
JAVA_HOME 是一个变量,设置的话便于不同jdk版本的切换,特别是多个依赖jdk的软件需要使用时,切换环境变量只需要更改一处,而不用担心有一处漏改。
有些第三方软件也需要该变量,所以有时候还必须设置。
classpath
对于该变量,就要知道什么是当前目录。那么什么是当前目录呢?
当前在用的目录就是当前目录,比如编辑记事本时,当前目录就是c:/windows;如果敲击cmd命令打开命令行窗口,当前目录就是c:\windows\system32;如果用java 指令进行编译时,当前目录就是JAVA下的BIN目录所在的路径,因为java.exe在bin里面。
如果要 ...
javascript 高级
- 博客分类:
- javascript
function Work(task,person){ this.task = task; this.person = person;}Work.prototype.display = function(){ return this.person + " is doing " + this.task;};
function Sched(workArr){ this.work = workArr;}Sched.prototype.display = function(){ var str = ""; for(var i = 0;i<this.work ...
javascript 高级
- 博客分类:
- javascript
var selfDefinFun = { yes:function(){ alert("this is the self-succe function!"); }, no:function(){ alert("this is the self-error function"); }};selfDefinFun.yes();
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv=&quo ...
package com.zst.mail;
/** * 发送邮件需要使用的基本信息 */import java.util.Properties;import java.util.Vector;
import buss.console.common.MailHost;
public class MailSenderInfo { // 发送邮件的服务器的IP和端口 private String mailServerHost; // 端口可配置,这里默认是25 private String mailServerPort = "25"; // 邮件发送者的地址 priv ...
java定时器的实现方式:
1)java.util.Timer. 2)ServletContextListener. 3)org.springframework.scheduling.timer.ScheduledTimerTask
第一种: Timer timer=new Timer(); timer.schedule(new ListByDayTimerTask(),10000,86400000); 其中ListByDayTimerTask类必须extends TimerTask里面的run()方法。
第二种
实现 ServletContextL ...
package time;
import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Date;import java.util.Timer;import java.util.TimerTask;
public class TimerTest{
public static void main(String[] args) throws ParseException { Timer t = new Timer(); //在5秒之后执行TimerTask的任务 ...
package time;
import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;
public class TestTimer {
public static void main(String[] args) {
Timer timer = new Timer();
TimerTask task = new TestTimerTask();
//第一个参数表示需要定时执行的业务
//第 ...
javascript
- 博客分类:
- javascript
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb231 ...
http://www.cnblogs.com/dcba1112/archive/2011/05/01/2033805.html
四种显式创建对象的方式: 1.用new语句创建对象 2.运用反射手段,调用java.lang.Class 或者 java.lang.reflect.Constructor 类的newInstance()实例方法 3.调用对象的clone()方法(必须实现cloneable接口) 4.运用序列化手段,调用java.io.ObjectInputStream 对象的 readObject()方法.
隐式创建对象:
对于java命令中的每个命令行参数,Java虚拟机都会创建相应的String对象,并把它们组织到一个String数组中,再把该数组作为参数传给程序入口main(String arg ...
只写简要的代码,以便之后开发参考用,
单例的读取:
public class JdomXML{
private static JdomXML instance = new JdomXML();
private static final String filePath="test.xml";
private Element root;
private JdomXML(){
SAXBuilder sb = new SAXBuilder();
//通过classpath的方式读取
Document doc= sb.b ...
JQuery 初始化
- 博客分类:
- JQuery
$ 和jQuery 是一个东西,只是一个别名而已,使用时根据个人喜好就行。
window.onload会等页面的内容都加载完成之后才执行,页面不能定义多个相同的,也没有简写形式。对于$(document).read(function(){}),是在dom结构绘制完成之后执行,所以可能会有问题,比如css没有加载完,那么很多选择器的操作是不起作用的,页面也可以定义多个,而不会冲突