登录后复制 //设置当前创建时间 DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); String format = LocalDateTime.now().format(formatter); System.out.println(format); private LocalDateTime contactmanDatebirth; preApasinfoSave.setUpdateTime(LocalDateTime.now()); 1.2.3.4.5.6.7. 原创作者: u_16864187 转载于: https://blog.51cto.com/u_16864187/11761045