xiaoyong931011
2022-10-22 8a6f372f1b58cc1e3a9f737b59ede01854e618a1
1
2
3
4
5
6
7
8
9
10
11
12
13
package cc.mrbird.febs.dapp.utils;
 
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
 
import java.util.UUID;
 
@Component public class UUIDUtil {
    /** * 生成32位的随机UUID * @return 字符形式的小写UUID */
    @Bean public String getUUID32() {
        return UUID.randomUUID().toString() .replace("-", "").toLowerCase();
    }
}