Browse Source

通用组件

Progr1mmer 6 years ago
parent
commit
32dad7aba1

+ 1 - 2
mysql-starter/src/main/java/com/yihu/mysql/query/BaseJpaService.java

@ -275,10 +275,9 @@ public class BaseJpaService<T, R> {
        StringBuffer buffer = new StringBuffer();
        Random random = new Random();
        for (int i = 0; i < length; i++) {
            int number = random.nextInt(str.length() - 1);//0~61
            int number = random.nextInt(str.length());//0~61
            buffer.append(str.charAt(number));
        }
        return buffer.toString();
    }
}