Java/오류 해결
[Java 오류] java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.Long, class java.util.ArrayList cannot be cast to class java.time.LocalDateTime
1. 문제 상황 // claim 정보 -> Member 로 변환 public static Member fromJwtClaims(Map jwtClaims) { // 오류 발생 코드1 long id = (Long) jwtClaims.get("id"); // 오류 발생 코드2 LocalDateTime createDate = (LocalDateTime) jwtClaims.get("createDate"); LocalDateTime modifyDate = (LocalDateTime) jwtClaims.get("modifyDate"); // 끝 String username = (String) jwtClaims.get("username"); String email = (String) jwtClaims.get("emai..