Get the current time of the background server

// Get the current time of the server 
  @RequestMapping("/sysdate" )
  @ResponseBody
  public SimpleJSONResult getSysDate() {
    return successJsonResult(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
  }

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324646928&siteId=291194637