获取到秒的时间戳 Instant.now().getEpochSecond();//10 //毫秒级时间戳 System.currentTimeMillis() 转载于:https://www.cnblogs.com/ZenoPan/p/9674486.html