목록(2020) 사이드 프로젝트 (4)
공부한것들을 정리하는 블로그 입니다.
1. 단위테스트 RestaurantControllerTest 에 가게 상세조회 추가 - detail() 추가 package kr.com.cyh.RRS.interfaces; import org.junit.jupiter.api.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.test.web..
REST API 실습 예제를 작성 후, Junit 을 이용하여 단위테스트를 실행해보자. 0. 구성도 1. WelcomeController 클래스를 생성 후 코드입력 package kr.com.cyh.RRS.interfaces; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class WelcomeController { @GetMapping("/") public String hello() { return "Hello, World!!"; } } 2. RestaurantReservationSystem..
1. Spring Initializr 를 통해 프로젝트 시작 - Java8 - Spring Web Starter - Spring Boot DevTools - Lombok ** 스프링의 버전이 올라가면서 해당 옵션들의 명칭이 변경되었을 수 있음. 유사한 것으로 검색해서 사용하면 됨. 2. 단위테스트를 병행하여 진행 - jupiter.api - junit4 3. Git 연동 (GitHub) 참고 : https://secuinfo.tistory.com/entry/Intellij-Github-Link [Intellij Idea] Github - Intellij 연동 및 사용 # Github - Intellij 연동 및 사용 (1) Intellij 환경설정 ① Git 실행설정 Intellij 실행 후 아래와 같이..
프로젝트명 : Restaurant-Reservation-System 내용 : 레스토랑 예약 사이트 만들기 - 사용자는 고객, 가게, 관리자 로 기대한다. - 고객은 뭘 먹고 싶은지 발견 할 수 있또록 가게 목록을 볼 수 있다 - 고객은 정확히 먹고 싶은게 뭔지 확인하기 위해 가게의 메뉴를 볼 수 있다. - 고객은 좋은 가게인지 알 수 있도록 평점을 확인할 수 있다. - 고객은 선택의 폭을 좁히기 위해 가게 목록을 분류에 따라 볼 수 있다. - 고객은 나와 남을 위해 가게에 평점과 리뷰를 남길 수 있다. - 고객은 나중에 찾아보기 쉽도록 가게를 즐겨찾기에 추가할 수 있다. - 고객은 가게에서 기다리지 않기 위해 가게에 인원, 메뉴를 예약할 수 있다. - 가게는 관심있는 고객을 받기 위해 예약 요청을 볼 수..