-
Notifications
You must be signed in to change notification settings - Fork 10
[22기_이연호] Spring Security & JWT 미션 제출합니다. #16
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
base: dldusgh318
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.
예외 처리 전략에서 많이 배웠습니다. 고생 많으셨습니다!!
|
||
@Getter | ||
@Builder | ||
public class ReasonDto { |
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.
ReasonDto를 별도로 두시게 된 배경이 궁금합니다!
throw new IllegalArgumentException("행이 올바르지 않습니다."); | ||
} | ||
|
||
return String.valueOf("A"+(row-1))+col.toString(); |
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.
저는 row를 String으로 선언했는데, 확장성 측면에서 Integer로 선언하고 변환하는 방식이 더 좋아 보이네요. 배우고 갑니다!
.genre(movie.getGenre()) | ||
.prolog(movie.getProlog()) | ||
.build(); | ||
return new MovieDetailDto( |
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.
Builder 에서 생성자로 변경하신 이유가 궁금합니다!
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.
꼼꼼하게 구현하셨네요!! 많이 배워갑니다 수고하셨어요 ~ 🫧
public ResponseEntity<List<MovieResDto.MovieDetailDto>> getMovies(){ | ||
@GetMapping("/movies") | ||
@Operation(summary = "영화 리스트 조회하기",description = "") | ||
public ResponseEntity<List<MovieResponseDto.MovieDetailDto>> getMovies(){ |
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.
요기에는 ApiResponse 안쓰고 ResponseEntity를 쓴 이유가 있을까요??
public class Schedule extends BaseEntity { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "schedule_id") |
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.
요런식으로 바꾸면 어떤 장점이 있나요??
ALL(0,"전체연령가"), | ||
OVER_12(12,"12세 이상"), | ||
OVER_15(15,"15세 이상"), | ||
OVER_18(18,"18세 이상"); |
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.
우옹 설명 들어간거 좋네요!!
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
@Repository |
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.
JpaRepository 상속하면 @repository 붙이지 않아도 되는 걸로 알아요! 가독성 때문에 붙이신걸까요?
No description provided.