목록2022/08/03 (1)
Developer_Neo
[Spring 입문] - 회원 관리 예제를 만들어 보자
1. 비즈니스 요구사항을 정리 2. 회원 도메인 객체를 저장하고 불러올 수 있는 리포지토리 객체인 저장소 객체를 만들자 3. 회원 리포지토리가 정상 동작하는지 테스트 케이스 작성 4. 실제 비즈니스 로직에 있는 회원 서비스를 만들자 5. 위의 서비스가 정상 동작하는지 테스트를 만들자 비즈니스 요구사항 데이터 : 회원 ID, 이름 기능 : 회원 등록, 조회 컨트롤러: 웹 MVC의 컨트롤러 역할 서비스: 핵심 비즈니스 로직 구현 ex) 중복 아이디 검색, 로그인... 리포지토리: 데이터베이스에 접근, 도메인 객체를 DB에 저장하고 관리 도메인: 비즈니스 도메인 객체, 예) 회원, 주문, 쿠폰 등등 데이터베이스에 저장하고 관리됨 우선 DB를 사용하는 것이 아닌 메모리로써 만들어보자. 도메인 리포지토리 위의 리..
Spring
2022. 8. 3. 23:23