목록2024/09/15 (3)
밤빵's 개발일지
😟포트원(Port One) 결제 연동 흐름포트원(Port One)을 통해 결제 기능을 구현하게 되었고. 처음에는 결제 프로세스가 어떻게 이루어지는지 감을 잡질못해서 매일매일 문서를 보거나 리서치만 하고 소위 말하는 삽질만하다가 프론트 짝꿍과 결제에 대해 소통을하면서 그 흐름을 잡아가는 중이다..! ▶ 포트원 결제 연동 흐름1. 백엔드에서 API를 통해 결제 데이터를 클라이언트로 전송결제 프로세스는 백엔드에서 클라이언트로 결제 관련 데이터를 전송하는 것으로 시작된다. 이때, 전송하는 데이터에는 결제를 위해 필요한 각종 정보가 포함되고, 클라이언트는 이 정보를 바탕으로 결제를 요청하게 된다.EstimateAndCommissionResponseDto 클래스가 그 예시가 될 수 있다. 이 클래스는 클라이언트에..
🤓JSON 직렬화/역직렬화JSON 데이터를 다루는 과정에서 직렬화와 역직렬화에 대한 문제가 생겼다. 직렬화와 역직렬화는 데이터를 다른 형식으로 변환하고, 다시 원래 형태로 복원하는 과정인데, 이 과정에서 발생한 문제를 해결하고 이해하기 위해 이번 개발일지를 작성하게 되었다! ▶ JSON 직렬화와 역직렬화란?먼저, 직렬화(Serialization)는 자바 객체를 JSON 형식으로 변환하는 과정이다. 이 과정은 데이터를 네트워크를 통해 전송하거나, 파일로 저장할 때 매우 유용하다. 반면, 역직렬화(Deserialization)는 JSON 데이터를 다시 자바 객체로 변환하는 과정이다. 서버나 클라이언트 간에 데이터를 주고받을 때, JSON을 자바 객체로 변환하여 실제로 사용할 수 있게 한다.내가 직면한 문제..
🤓Gradle과 Maven의 차이점나는 Spring Boot와 Gradle을 사용하면서 빌드 하고 있다. Gradle은 내가 프로젝트에서 사용하고 있는 빌드 도구지만, Maven이라는 또 다른 빌드 도구도 있다. 두 도구는 자바에서 사용되지만, 구체적으로 어떤 차이점이 있는지 잘 모른다. 이번 기회를 통해 Gradle과 Maven의 차이점을 공부해보고자 한다. ▶ Gradle과 Maven이란?Gradle과 Maven은 모두 자바 프로젝트에서 의존성 관리와 빌드를 자동화하는 도구이다. 개발자가 프로젝트에서 사용해야 하는 라이브러리를 쉽게 추가하고, 코드를 컴파일하고 패키징하는 과정을 자동화할 수 있도록 도와준다. → Maven:XML 기반의 프로젝트 관리 도구로, 빌드 및 의존성 관리를 자동화하는 기능을..