src/main/java/cn/felord/mybatis/CrudMapperProvider.java
private static String camelCaseToMapUnderscore(String str) {
        Matcher matcher = HUMP_PATTERN.matcher(str);
        StringBuffer sb = new StringBuffer();
        while (matcher.find()) {
            matcher.appendReplacement(sb, "_" + matcher.group(0).toLowerCase());
        }
        matcher.appendTail(sb);
        return sb.toString();
    }
/**
     * Camel case to map underscore string.
     *
     * @param str the str
     * @return the string
     */
Camel case to map underscore string.
@param str the str
@return the string
Camel case to map underscore string . @param str the str @return the string
private static String camelCaseToMapUnderscore(String str) {
        Matcher matcher = HUMP_PATTERN.matcher(str);
        StringBuffer sb = new StringBuffer();
        while (matcher.find()) {
            matcher.appendReplacement(sb, "_" + matcher.group(0).toLowerCase());
        }
        matcher.appendTail(sb);
        return sb.toString();
    }
private static String camelCaseToMapUnderscore ( String str ) { Matcher matcher = HUMP_PATTERN . matcher ( str ) ; StringBuffer sb = new StringBuffer ( ) ; while ( matcher . find ( ) ) { matcher . appendReplacement ( sb , "_" + matcher . group ( 0 ) . toLowerCase ( ) ) ; } matcher . appendTail ( sb ) ; return sb . toString ( ) ; }
Camel case to map underscore string.
Camel case to map underscore string .