-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[8주차]Cow_mvc_practice(fuirian) #8
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
한번 더 확인하시면서 고치시면 좋아보입니다! comment밖에 안보이는데 혹시 다른 도메인은 아직 못 올리신건가요!?
|
||
private final CommentService commentService; | ||
|
||
@PostMapping("/api/comments") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/api/comments 경로는 클래스위에 @RequestMapping으로 전체 경로 지정해주세요.
@GetMapping("/api/comments/{commentId}") | ||
public void findComment(@PathVariable long commentId) { | ||
Comment comment = commentService.findComment(commentId); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
db에서 정보를 가져오는 부분인데 response가 존재하지 않습니다
@Getter | ||
public class CommentRequest { | ||
|
||
private Member member; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Member로 선언하면 json파싱이 되나요?
추가 Q & A
🤔 잘 모르겠거나, 더 궁금한 내용이 있었나요?
집중적으로 리뷰 받고싶은 것이 있나요?
https://web.postman.co/workspace/My-Workspace~2dedf2be-4166-4b44-8ef9-a4e59a55e5aa/collection/29668110-20689a8d-9e3c-44a7-9d7f-1b4d484f1153?action=share&source=copy-link&creator=29668110&active-environment=7214b433-132e-421a-911b-5efef911c7b0