© 2026 Hashnode
DTO와 Entity는 비슷해 보여도 역할이 다릅니다. DTO와 Entity의 쓰임 구분 우리는 앞서 용어를 불필요하게 넓은 의미로 사용하기보다는, 자주 사용되는 의미면서 권장하는 의미로 설명하려고 했습니다. 그때 DTO와 entity는 다음처럼 구분했습니다. DTO: 사용자(클라이언트)와 주고 받는 데이터입니다. Entity: 데이터베이스와 주고 받는 데이터 양식의 기준이 되는 형태고, DB 테이블에 매핑되는 필드 구조를 띱니다. (즉, ...

JJWT Impl의 취약점 발견 취약점 보고(CVE) 참고: signWith() 함수의 deprecated는 0.12.0 버전에 되어 CVE 보고와 무관합니다. 취약점은 사소한 것이며, 0.11 버전 이하를 사용하더라도 반드시 올려야 하는 것은 아닙니다.벤더 측에서 릴리스한 버전을 권장하기 위하여 정보를 공유합니다. 해당 취약점은 CVE에 CVE-2024-31033로 보고되었습니다. (2024-03-27, 논쟁 있음) 이 보고의 내용은 이렇...

참고: 따라치기 위한 코드는 '인증 서비스 코드 작성' 챕터에 있습니다. 서비스 레이어의 DIP(의존성 역전 원칙) 한 레이어에서 다른 레이어를 이용할 때 자주 적용하는 규칙이 있습니다. 우리 서버 애플리케이션에서는 주로 서비스 레이어를 이용할 때 기본적으로 적용하는 설계 원칙인 '의존성 역전 원칙(DIP)'입니다. 사실 다른 레이어(persistence 등)에도 적용하지만, 설명하고 이해하는 데에는 서비스 레이어만 한 게 없죠. 의존성 역...

Introduction In modern applications, ensuring that scheduled tasks do not run concurrently across distributed systems is crucial for maintaining data integrity and consistency. One common solution for this problem is using distributed locks. In this ...

Spring Boot has long been favored for its ability to simplify the bootstrapping and development of new Spring applications. Part of this simplification is the abstraction of complex configurations and operations behind concise, intention-revealing in...

Hello World !! In my previous blogs, we have seen how to develop REST CRUD APIs using Spring Boot and MongoDB. Spring Boot + MongoDB : Pagination APIs - Click Link In this blog, we have created some APIs to get data from database using pagination. ...
