본문 바로가기

개발일지/문제 해결13

Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type `java.time.LocalDateTime` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (through reference c Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type `java.time.LocalDateTime` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (through reference chain: com.example.springbootredis.model.User["createdAt"]) Spring Boot에서 Redis에 데이터를 저장할 때, Jackson을 사용하여 객체를 JSON으로 직렬화(Serialization)하는 과정에서 .. 2025. 3. 16.
npx create-react-app 디렉토리이름 (react 설치 에러 문제) npx create-react-app 디렉토리이름명령어로 react를 설치하려고 한다.그런데 다음과 같이 에러가 발생했다.taekgyu@taekgyuui-MacBookAir test-app % npx create-react-app . Creating a new React app in /Users/taekgyu/devProject/lecture/reactStudy/test-app.Installing packages. This might take a couple of minutes.Installing react, react-dom, and react-scripts with cra-template...added 1324 packages in 5s267 packages are looking for fun.. 2024. 12. 17.
gradle build 에러 Mac 터미널에서 gradle build 를 하는데 에러가 발생했다. makefile 코드는 다음과 같다.# backend-build: Build the backendbackend-build: @echo "Building backend..." cd backend/Graphizer-Global && gradle build makefile이 있는 곳에서 backend-build를 실행했는데다음과 같은 에러가 발생했다.taekgyu@taekgyuui-MacBookAir DT_P_Graphizer_Global % make backend-buildBuilding backend...cd backend/Graphizer-Global && gradle build> Task :Common-Se.. 2024. 10. 31.
ami 이미지를 인스턴스 연결 기존에 ec2 인스턴스를 '이미지 생성'으로이미지의 AMI로 만들었는데'AMI를 인스턴스로 시작' 을 클릭하고새 인스턴스로 연결 했는데 다음과 같은 에러가 발생했다.Failed to connect to your instanceEC2 Instance Connect is unable to connect to your instance. Ensure your instance network settings are configured correctly for EC2 Instance Connect. For more information, see EC2 Instance Connect Prerequisites at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-ins.. 2024. 7. 30.
docker로 mariadb 컨테이너 생성후 외부에서 사용 시 에러 - Could not connect to localhost:3308 : unexpected end of stream, read 0 bytes from 4 (socket was closed by server) 나는 기존에 windows 에서 mariadb를 3307 포트로 사용하고 있었다. 기존 윈도우에 다운받은 mariadb를 유지한채 docker에서 mariadb를 다운 받았다. docker pull mariadb; 그러면 mariadb 이미지가 추가되었고 그러고 나서 docker run --name mariadb -d -p 3308:3308 --restart=always -e MYSQL_ROOT_PASSWORD=013174 mariadb 명령어로 3308 포트로 mariadb를 실행 시켰다. 그러면 컨테이너가 생성 됐다. 그 다음에 msa의 discovery-service(유레카), config, apigateway, order-service를 실행시키고 order-service의 h2-console에서.. 2022. 9. 30.
Exception 수천번 발생하는에러... postman으로 body에 다음 json값을 넣고 { "userName" : "test02", "password" : "test" } http://localhost:8080/api/v1/users/join 경로로 post 요청을 했다. 기존에 아이디가 있으면 DUPLICATED_USER_NAME 에러가 떠야하는데 java.lang.StackOverflowError: null 에러가 뜬다.. 아래 서비스 코드로 진행을 했다. 그런데 만약에 test03 이라는 유저가 db에 있으면 역시나 기존에 유저아이디가 있기 때문에 SnsApplicationException 에러가 발생합니다. 그런데 나는 java.lang.StackOverflowError: null 에러가 발생하고 at com.example.sns... 2022. 9. 10.