목록블로그만들기 (4)
Coding Note

블로그 만들기 프로젝트 최종! 댓글 기능 구현하기 1. 댓글 구현하기 댓글 작성 및 삭제 - 화면 구현 - 댓글 DB 연동 1) 댓글 작성 기능 구현 BoardApiController //댓글 작성 @PostMapping("/api/board/{boardId}/reply") public ResponseDto replySave(@RequestBody ReplySaveRequestDto replySaveRequestDto) { boardService.댓글쓰기(replySaveRequestDto); return new ResponseDto(HttpStatus.OK.value(), 1);// 200 : http 전송 성공 } BoardService //댓글 작성 @Transactional public void ..

글 수정, 삭제 및 회원 수정 구현하기! 1. 글 수정하기 updateForm ${board.content } 글수정 완료 BoardRepository public interface BoardRepository extends JpaRepository{} BoardApiController @PutMapping("/api/board/{id}") //요청 method가 다르기 때문 mapping 주소 같아도 상관 없음 public ResponseDto update(@PathVariable int id, @RequestBody Board board) { boardService.글수정하기(id, board); return new ResponseDto(HttpStatus.OK.value(), 1); } BoardS..

스터디 2일 차 2022.03.17 1. yaml 이란 데이터 전송 파일 기존 사용했던 web.xml, root-context.xml, servlet-context.xml의 합본이라고 생각하면 될 거 같다! https://www.inflearn.com/questions/16184 yaml파일 이란 무엇인가요 - 인프런 | 질문 & 답변 안녕하세요 강사님 너무 질문이 많아서 죄송합니다. yaml파일 이라는 단어를 요 근래 많이 듣고 있는데 정확인 무슨 파일인가요 검색해 보지도 않고 무조건 질문을 드리는것 같아서 죄송하지만 www.inflearn.com jpa: open-in-view: true hibernate: ddl-auto: create naming: physical-strategy: org.hibe..

1. Git git - 프젝 관리, 동기화 작업 영역 - 인덱스(Index) - 헤드(Head) - 3가지 박스를 동기화시키는 작업이라고 생각하면 된다. git inti : 저장소 생성 git add . : 파일 원격 저장소에 업로드 git commit -m "메시지" : 깃 저장소에 업로드 git status : 깃 상태 확인 git remote add origin 저장소 : 깃 저장소 연결 git remote -v : 깃 연결 상태 확인 git push origin main : 메인 브랜치에 파일 업로드 git pull origin main : 업로드된 내용 가져오기 git checkout -b 브랜치명 : 브랜치 생성 git push origin 브랜치명 : 선..