获取后台服务器当前时间

// 获取服务器当前时间
  @RequestMapping("/sysdate")
  @ResponseBody
  public SimpleJSONResult getSysDate() {
    return successJsonResult(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
  }

猜你喜欢

转载自www.cnblogs.com/gaomanito/p/8882515.html
今日推荐