SpringWebLayer
-
Spring 구조2Java 2023. 10. 17. 09:48
용어 정리 DAO ( Data Access Object ) DB에 접근하기 위한 객체 DB에 접근하기 위한 로직과 비즈니스 로직을 분리하기 위해 사용 DTO ( Data Transfer Object) 계층 간 데이터 교환을 하기 위한 객체 로직을 갖지 않고 Getter, Setter만 존재 Spring Web Layer Web Layer 컨트롤러(@Controller)가 대표적이고 필터(@filter), 인터셉터 등 포함 외부 요청과 응답에 대한 전반적인 영역을 의미 Service Layer 말 그대로 서비스(@Service) 일반적으로 컨트롤러와 저장소(Repository, Dao) 중간에 위치 트랜잭션(@Transaction)과 도메인 간의 연산 순서를 보장해 줌 Repository Layer DB와..