SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
String reqTime = sf.format(new Date());
和
SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String reqTime = sf.format(new Date());
啥不同,自己试!