Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a3398e1fda
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| url: ${DB_URL} # jdbc:mysql://localhost:3306/{???????} | ||
| username: ${DB_USER} # MySQL ?? ?? | ||
| password: ${DB_PW} # MySQL ???? |
There was a problem hiding this comment.
현재 설정은 ${DB_URL}, ${DB_USER}, ${DB_PW}를 기본값 없이 강제하고 있어 @SpringBootTest 실행 시 로컬/CI에 환경변수가 없으면 컨텍스트가 즉시 실패합니다. 스프링 학습에서도 테스트는 외부 환경과 분리하는 습관이 중요하므로 src/test/resources/application-test.yml(예: H2) + @ActiveProfiles("test")를 쓰거나 placeholder 기본값을 지정해 최소한 컨텍스트 로딩은 보장해 주세요. 다음 학습 주제로는 Spring Profile 기반 테스트 격리를 추천합니다.
Useful? React with 👍 / 👎.
| @@ -0,0 +1,4 @@ | |||
| package com.example.umc10th.domain.member.repository; | |||
|
|
|||
| public interface MemberRepository { | |||
There was a problem hiding this comment.
이 인터페이스를 빈 타입으로 두면 Spring Data JPA가 구현체 프록시를 생성하지 못해 이후 서비스에서 주입 시 NoSuchBeanDefinitionException이 나고, 기본 CRUD 메서드 학습도 바로 진행하기 어렵습니다. 스터디 목적이라면 먼저 JpaRepository<Member, Long> 형태로 선언해 리포지토리-서비스 계층 연결의 기본 흐름을 잡는 것이 좋습니다. 다음으로 Spring Data Repository 프록시 생성 원리를 학습해 보세요.
Useful? React with 👍 / 👎.
🔗 연관 이슈
closes #16
🛠 작업 내용
🖼 스크린샷 (선택)
👀 리뷰 요구사항 (선택)
🤖 AI 활용
💬 나의 프롬프트
[Image #2] 왜 빨간 x표가 있지 오른쪽 위에?
[Image #3] 이건 무슨 경고야?
🧠 AI 응답
✅ 내가 최종 선택한 방법 (이유)
로컬 아무 폴더에서 하다가 이 레포 풀 받아서 옮기니까 아래와 같은 x표가 보여서 질문했습니다. 그러나 작동은 잘 되는 것 같습니다.

💡 나만의 Tip (선택)