부산대 BE_문성재 2주차 과제 (1단계)#214
Open
sjmoon00 wants to merge 21 commits intokakao-tech-campus-2nd-step2:student-pfrom
Open
부산대 BE_문성재 2주차 과제 (1단계)#214sjmoon00 wants to merge 21 commits intokakao-tech-campus-2nd-step2:student-pfrom
sjmoon00 wants to merge 21 commits intokakao-tech-campus-2nd-step2:student-pfrom
Conversation
구현할 기능 정의
id설정부분을 사용자가 접근하지 못하도록 수정
상품 수정 메서드에서 PutMapping으로 수정 상품 삭제 메서드에서 DeleteMapping으로 수정
step2구현을 위한 필요 기능 정의
form데이터가 정상적으로 받아지지 않아서 record에서 일반 클래스로 변경
json을 반환하지 않고 데이터를 html에 랜더링 해서 반환한다 상품의 조회,추가,수정,삭제 기능도 화면상에서 form데이터를 제출하면 가능하도록 변경
step3 구현에 필요한 요구사항 정의 기존에 저장하던 hashMap에서 h2데이터베이스로 저장소를 변경한다. 이를 위해 jdbcTemplate를 이용한다.
cost값이 음수로 되지 않도록 수정
기존 hsahMap에서 데이터베이스로 저장소 변경
step1을 위한 요구사항 작성
유효성 검사를 위한 사용자 정의 예외를 만들고 GlobalExceptionHandler로 전역에서 잡아서 에러를 처리하도록 구현
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
step2에서는 컨트롤러와 서비스를 분리에서 구현해보고 싶은데 어떤 기준으로 나누는게 좋은지 궁금합니다