public static String localDateTimeToString(final LocalDateTime localDateTime, final String pattern) {
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern(pattern);
        return localDateTime.format(formatter);
    }
Format local date time to string.

@param localDateTime the localDateTime
@param pattern       formatter pattern
@return the format string
shenyu-common/src/main/java/org/apache/shenyu/common/utils/DateUtils.java