先写主要问题: Date d = new Date(); System.out.println(d); 请在本地开发工具运行以下代码。看看输出时间是否跟你操作系统时间一致,如果不一致,恭喜,以下内容对你有用。 http://log-cd.iteye.com/blog/368238