Notice
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- java list
- elasticsearch
- @FunctionalInterface
- HashMap
- java
- kotlin
- ResponseBody
- Sleuth
- traceasynccustomautoconfiguration
- micrometer tracing
- EnableWebMvc
- grpc
- wire type
- map
- SpringMVC
- list
- jpa
- Spring JPA
- java lambda
- DeferredImportSelector
- Spring Boot
- spring MVC
- traceId
- asyncconfigurer
- aws secretmanager
- asynccustomautoconfiguration
- awssecretsmanagerpropertysources
- CompletableFuture
- spring
- java.util.list
Archives
- Today
- Total
목록convert long to string (1)
du.study기록공간

나름 중복이 덜 발생하면서, 일렬번호를 만들되, 짧게 만들 수 있는 방법이 어떤것이 있을가 찾아보던 도중, millisecond를 Base64 String 으로 만들면 어떨까 하는 생각이 들어, 해당방식을 찾아 작성합니다. 우선 사용한 모듈은 다음과 같습니다. dependencies{ implementation("commons-codec:commons-codec:1.5") } 해당 모듈에서 Base64.encodeBase64URLSafeString 을 사용하기 위함입니다. 아래코드는 전체 플로우를 나타낸 코드입니다. public static byte[] longToByte(Long x){ ByteBuffer buffer = ByteBuffer.allocate(java.lang.Long.BYTES); bu..
자바
2021. 9. 19. 01:38