public static String getCamelName(String name) {
        if (StringUtils.isBlank(name)) {
            return null;
        }
        name = name.toLowerCase();
        //去掉前面的_
        while (name.startsWith("_")) {
            name = name.substring(1);
        }
        //去掉后面的_
        while (name.endsWith("_")) {
            name = name.substring(0, name.length() - 1);
        }

        StringBuilder sb = new StringBuilder();

        for (int i = 0; i < name.length(); i++) {

            char c = name.charAt(i);

            if (c == '_') {
                i++;
                sb.append(Character.toUpperCase(name.charAt(i)));
                continue;
            }
            sb.append(c);
        }

        return sb.toString();
    }
public static String getCamelName ( String name ) { if ( StringUtils . isBlank ( name ) ) { return null ; } name = name . toLowerCase ( ) ; while ( name . startsWith ( "_" ) ) { name = name . substring ( 1 ) ; } while ( name . endsWith ( "_" ) ) { name = name . substring ( 0 , name . length ( ) - 1 ) ; } StringBuilder sb = new StringBuilder ( ) ; for ( int i = 0 ; i < name . length ( ) ; i ++ ) { char c = name . charAt ( i ) ; if ( c == '_' ) { i ++ ; sb . append ( Character . toUpperCase ( name . charAt ( i ) ) ) ; continue ; } sb . append ( c ) ; } return sb . toString ( ) ; }
转换成骆驼命名法返回

@param name
@return