Skip to content

[2주차] 이설아/[feat] 상세 기능 구현#6

Open
seola12e wants to merge 2 commits intoLeets-Official:mainfrom
seola12e:이설아/2주차

Hidden character warning

The head ref may contain hidden characters: "\uc774\uc124\uc544/2\uc8fc\ucc28"
Open

[2주차] 이설아/[feat] 상세 기능 구현#6
seola12e wants to merge 2 commits intoLeets-Official:mainfrom
seola12e:이설아/2주차

Conversation

@seola12e
Copy link
Copy Markdown

테스트 결과

스크린샷 2025-03-29 오후 11 23 54

추가사항

closed #5

@seola12e seola12e requested review from rootTiket and soyesenna March 29, 2025 14:27
@seola12e seola12e self-assigned this Mar 29, 2025
Copy link
Copy Markdown
Member

@rootTiket rootTiket left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

크게 문제있어보이는 부분은 없네요!! 고생하셨습니다
코멘트 읽어보시면 좋을것 같아요!!

Comment on lines +4 to +5
username: root
password: root
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

현재는 미션 환경이라 노출되어도 괜찮으나, 추후에는 환경변수로 관리하는 것을 추천드립니다!!

Comment on lines +138 to +143
""", (rs, rowNum) -> new Employee(
rs.getLong("id"),
rs.getString("name"),
rs.getLong("department_id"),
rs.getInt("salary"),
rs.getLong("manager_id")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

매번 매핑하는 방식도 괜찮지만 (지금의 경우, 중복이 적기 때문) 매핑하는 메서드를 따로 만드는 것도 고려해보시면 좋을것 같습니다! RowMapper를 이용하시면 구현할 수 있습니다~!
참고자료 : https://mincanit.tistory.com/13

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

참고하겠습니다! 감사합니다 ☺️

Copy link
Copy Markdown

@soyesenna soyesenna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

구현 고생하셨어요!
jdbcTemplate의 여러 메서드들을 적절하게 활용하신 것 같네요👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

이설아/[feat] 상세 기능 구현

3 participants