/** * 检查字符串是否是合法的uuid, * * @param uuidStr * @return 是返回true,不是返回false */ public static boolean checkIsUuid(String uuidStr) { try { UUID.fromString(uuidStr).toString(); } catch (Exception e) { //e.printStackTrace(); return false; } return true; }
判断uuid是否合法
猜你喜欢
转载自www.cnblogs.com/20000ding/p/8921811.html
今日推荐
周排行