? new ResponseEntity<>(coffeeRepository.save(coffee),
HttpStatus.OK)
: new ResponseEntity<>(coffeeRepository.save(coffee),
HttpStatus.CREATED);
}
TIP
_
코드 사용하기
완성된 코드는 깃허브(
chapter4end
브랜치)에서 확인할 수 있습니다.
4.5
마치며
앞 장에서 만든 스프링 부트 애플리케이션에
DB
액세스를 추가하는 방법을 다루었습니다. 그
리고 스프링 부트의 데이터 기능 개요와 함께 다음 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.