반응형
토이프로젝트
프로젝트 기간 : 2023.08.02 ~ 2023.08.05
Member :최원빈(멘토님), 박상율(팀장), 이기정, 구은현
프로젝트 명: 개커플(개발자들을 위한 커뮤니티 플랫폼)
토이프로젝트를 진행하면서 문제되었던 부분을 부족하지만 내가 알고있는 수준에서 개발일지를 적어보려한다.
8월2일
문제
프론트 serve 실행과정에서 에러 발생.
원인
Vue cli, pnpm 설치가 안되어 실행안되었음.
해결
Vue cli, pnpm 설치후 잘 실행되었음.
8월3일
문제
@PutMapping("/board/{id}")
public String updatePost(@PathVariable Long id, @RequestBody SpringRequestDto SpringRequestDto) {
springService.updatePost(id, SpringRequestDto);
return "success";
}
public String updatePost(@PathVariable Long id, @RequestBody SpringRequestDto SpringRequestDto) {
springService.updatePost(id, SpringRequestDto);
return "success";
}
백엔드 실행 되지않음, 컴파일오류로 코드 문제발생.
원인
변수타입부분의 명칭이 잘못되었다. 소문자로 시작해야하는데 대문자로 적어 클래스타입이 불려와 에러가 발생하였다.
해결
@PutMapping("/board/{id}")
public String updatePost(@PathVariable Long id, @RequestBody SpringRequestDto springRequestDto) {
springService.updatePost(id, springRequestDto);
return "success";
}
public String updatePost(@PathVariable Long id, @RequestBody SpringRequestDto springRequestDto) {
springService.updatePost(id, springRequestDto);
return "success";
}
소문자로 변경 후 오류없이 잘 실행되었다.
8월4일
문제
@DeleteMapping("/board/{id}")
public String deletePost(@PathVariable Long id) {
return springService.deletePost(id);
}
public String deletePost(@PathVariable Long id) {
return springService.deletePost(id);
}
게시글 저장 및 수정, 삭제시 목록 화면으로 넘어가지 않음.
원인
API 설계시 return 값을 String 타입의 "success" 로 받기로 하였는데 이부분 인지하지못하고 서비스클래스에서 반환하여 Response 값이 상이하여 오류발생.
해결
@DeleteMapping("/board/{id}")
public String deletePost(@PathVariable Long id) {
springService.deletePost(id);
return "success";
}
public String deletePost(@PathVariable Long id) {
springService.deletePost(id);
return "success";
}
return값을 String 타입의 "success" 로 변경 후 잘 실행되었다.
8월5일
반응형
'항해99 프리코스 1기 > 토이 프로젝트' 카테고리의 다른 글
| 6조 토이프로젝트 (0) | 2023.08.01 |
|---|