[엄성현_BackEnd] 5주차 과제 제출합니다.#37
Open
castleeom0001-collab wants to merge 3 commits intoBCSDLab-Edu:mainfrom
Open
[엄성현_BackEnd] 5주차 과제 제출합니다.#37castleeom0001-collab wants to merge 3 commits intoBCSDLab-Edu:mainfrom
castleeom0001-collab wants to merge 3 commits intoBCSDLab-Edu:mainfrom
Conversation
asa9874
reviewed
Nov 11, 2025
asa9874
left a comment
There was a problem hiding this comment.
고생하셨습니다!👍
CRUD의 데이터의 경우 다음처럼 선언하신뒤 리스트에 데이터를 추가/삭제/수정 하는 형식으로 진행해주시면 될거같아요
List<Person> datas = new ArrayList<>
Comment on lines
+23
to
+27
| @GetMapping("/json") | ||
| @ResponseBody | ||
| public hello3 getJsonDate(){ | ||
| return new hello3(23, "엄성현"); | ||
| } |
There was a problem hiding this comment.
이렇게 객체를 반환할때 json으로 바뀌는걸 직렬화라고 하는데 한번 알아보시면 좋을거같아요
Author
There was a problem hiding this comment.
알려주셔서 감사합니다. 관련된 내용에 대해 꼭 알아보겠습니다.
| @@ -0,0 +1,4 @@ | |||
| package com.example.bcsd; | |||
|
|
|||
| public class ArticleController { | |||
There was a problem hiding this comment.
상태코드 반환에 대해서는 ResponseEntity 참고해보시면 좋을거같아요
Author
There was a problem hiding this comment.
옙. @ResponseEntity에 대해 알아보겠습니다.
| public hello3 getJsonDate(){ | ||
| return new hello3(23, "엄성현"); | ||
| } | ||
| public static class hello3{ |
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.
5주차 실습 과제를 수행했습니다.
실습1, 2의 자기소개 과제는 성공했으나, 3번째의 CRUD API 부분은 좀 더 공부하고 도전하겠습니다.