LocalDateTime time = techLogicTablePo.getCreateTime(); DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); String createTime = dateTimeFormatter.format(time);
原文:https://www.cnblogs.com/liubaihui/p/10641829.html