private static final SecureRandom secureRandom = new SecureRandom();
private static final UUIDGenerator generator = UUIDGenerator.getInstance();
public synchronized static String generateUniqueId() {
UUID uuid = generator.generateRandomBasedUUID(secureRandom);
return uuid.toString().replaceAll("-", "").toUpperCase();
}
.form-group.required .control-label:before{ color: red; content: "*"; position: absolute; margin-left: -15px; } 라벨 왼쪽에 * 넣기 bootstrap.css에 추가 폼에 required 추가 class="form-group required"
댓글
댓글 쓰기