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
- kotlin
- SpringMVC
- EnableWebMvc
- ResponseBody
- java.util.list
- CompletableFuture
- elasticsearch
- grpc
- java
- DeferredImportSelector
- java list
- spring MVC
- spring
- aws secretmanager
- Spring Boot
- map
- HashMap
- micrometer tracing
- jpa
- Sleuth
- traceId
- asynccustomautoconfiguration
- wire type
- asyncconfigurer
- list
- awssecretsmanagerpropertysources
- @FunctionalInterface
- java lambda
- Spring JPA
- traceasynccustomautoconfiguration
Archives
- Today
- Total
목록millisecond 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