-
Notifications
You must be signed in to change notification settings - Fork 0
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
✨ [STMT-200] 스터디 수정 api 구현 #116
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.
고생하셨습니다.
코드를 읽어보았을때 null을 직접적으로 다루는 부분이 많아 나중에 문제를 일으킬 수 있을 것 같습니다.
최대한 null을 다루는 상황을 없앴으면 하는데 현재 어려운 부분일까요?
src/main/java/com/stumeet/server/study/adapter/out/persistance/entity/StudyJpaEntity.java
Show resolved
Hide resolved
.../java/com/stumeet/server/study/adapter/out/persistance/mapper/StudyTagPersistenceMapper.java
Outdated
Show resolved
Hide resolved
src/main/java/com/stumeet/server/study/application/port/in/command/StudyUpdateCommand.java
Outdated
Show resolved
Hide resolved
구현할 때는 어쩔 수 없이 null을 사용해야 하는 부분이라고 생각했는데 지금 보니 잘못 아는 것들이 존재했던 것 같습니다. 리뷰 달아주신 내용에 대해서 내일 반영하여 다시 요청 드리겠습니다~! 👍 |
: 현재 사용되고 있는 modelAttribute에서 Multipart file과 다른 파라미터 값이 혼용되어 있는 객체에서 multiform data 요청은 빈 배열을 받지 못하고 해당 파라미터의 값을 null로 인식하였습니다. 따라서 파일과 요청본문을 request part로 분리하여 파라미터 값으로 빈 문자열도 받을 수 있도록 리팩토링 하였습니다.
해당 사항 반영하였습니다! 재검토 부탁 드립니다! |
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.
고생하셨습니다 💪
🤔 어떤 방식으로 해결했는지 적어주세요