Skip to content

[Sangwan] Week4 미션#20

Open
wantkdd wants to merge 1 commit intoSangwanfrom
Sangwan-week04
Open

[Sangwan] Week4 미션#20
wantkdd wants to merge 1 commit intoSangwanfrom
Sangwan-week04

Conversation

@wantkdd
Copy link
Copy Markdown

@wantkdd wantkdd commented Apr 6, 2026

🔗 연관 이슈

closes #16

🛠 작업 내용

  • 프로젝트 초기화
  • 도메인형 아키텍처에 맞는 프로젝트 설계
  • Swagger 설정

🖼 스크린샷 (선택)

👀 리뷰 요구사항 (선택)

🤖 AI 활용

  • AI 사용 안 함
  • 코드 작성 아이디어 참고
  • 테스트/리팩토링 보조
  • 문서/주석 작성 보조
  • 기타 (아래에 간단히 작성)

💬 나의 프롬프트

[Image #2] 왜 빨간 x표가 있지 오른쪽 위에?
[Image #3] 이건 무슨 경고야?

🧠 AI 응답

                                                                                
  클릭해보면 무슨 알림인지 확인할 수 있는데, 보통 다음 중 하나입니다:                                                                                                                                          
                                                                                                                                                                                                               
  - Gradle 동기화 관련 알림 (예: 플러그인 업데이트 권장)                                                                                                                                                       
  - 인덱싱 오류                                                                                                                                                                                                
  - 플러그인 업데이트 알림                                                                                                                                                                                     
                                                                                                                                                                                                               
  앱은 정상 실행되고 있으니 무시해도 되고, 클릭해서 내용 확인 후 dismiss 하면 사라집니다
IntelliJ의 커밋 전 코드 검사(Code Inspection) 결과입니다. 59개 경고가 있다는 뜻이에요.                                                                                                                       
                                                                            
  파일 목록을 보면 DTO, Entity, Enum, Service 등 거의 모든 파일에 경고가 있는데, 보통 이런 경고들입니다:                                                                                                       
                                                                                                                                                                                                               
  - unused import (안 쓰는 import)                                                                                                                                                                             
  - Lombok 관련 경고 (필드 접근 등)                                                                                                                                                                            
  - 미사용 변수/메서드                                                                                                                                                                                         
  - raw type 사용
  - 누락된 직렬화 UID 등                                                                                                                                                                                       
                                                                                                                                                                                                               
  심각한 에러가 아니라 경고이므로 "그래도 커밋 및 푸시" 버튼을 눌러서 커밋해도 됩니다.                                                                                                                         
                                                                                                                                                                                                               
  경고 내용이 궁금하면 목록에서 파일을 클릭하면 구체적으로 어떤 경고인지 볼 수 있습니다. 나중에 정리하고 싶으면 하나씩 확인해서 수정하면 됩니다.

✅ 내가 최종 선택한 방법 (이유)

로컬 아무 폴더에서 하다가 이 레포 풀 받아서 옮기니까 아래와 같은 x표가 보여서 질문했습니다. 그러나 작동은 잘 되는 것 같습니다.
image

💡 나만의 Tip (선택)

@wantkdd wantkdd self-assigned this Apr 6, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 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".

Comment on lines +7 to +9
url: ${DB_URL} # jdbc:mysql://localhost:3306/{???????}
username: ${DB_USER} # MySQL ?? ??
password: ${DB_PW} # MySQL ????
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge 테스트에서 환경변수 없는 DB 설정 의존 제거

현재 설정은 ${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 {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Repository를 JpaRepository로 선언

이 인터페이스를 빈 타입으로 두면 Spring Data JPA가 구현체 프록시를 생성하지 못해 이후 서비스에서 주입 시 NoSuchBeanDefinitionException이 나고, 기본 CRUD 메서드 학습도 바로 진행하기 어렵습니다. 스터디 목적이라면 먼저 JpaRepository<Member, Long> 형태로 선언해 리포지토리-서비스 계층 연결의 기본 흐름을 잡는 것이 좋습니다. 다음으로 Spring Data Repository 프록시 생성 원리를 학습해 보세요.

Useful? React with 👍 / 👎.

@wantkdd wantkdd changed the title feat: 프로젝트 초기화, 도메인형 아키텍처에 맞게 설계 및 Swagger 설정 명시 [Sangwan] Week4 미션 Apr 6, 2026
Copy link
Copy Markdown

@Joonseok-Lee Joonseok-Lee left a comment

Choose a reason for hiding this comment

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

LGTM 👍

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.

2 participants