Skip to content

Conversation

@JIWONKIMS
Copy link
Collaborator

@JIWONKIMS JIWONKIMS commented Oct 10, 2025

Close #103

Summary

  • Redis Repository 스캔으로 인한 경고 로그 해결
  • DB 스키마 초기화를 위한 임시 설정 변경

Changes

  • RedisConfig@EnableCaching 추가 (명시적 캐싱 활성화)
  • @EnableRedisRepositories(basePackages = ["nowhere"]) 추가하여 JPA Repository가 Redis Repository로 오인식되는 것 방지
  • application-prod.ymlddl-auto를 임시로 create로 변경 (배포 후 update로 재변경 예정)

Issue

  • 배포 서버에서 6개의 JPA Repository가 Redis Repository로 오인식되어 경고 로그 발생
  • users.location 컬럼 타입 변경 시 자동 캐스팅 실패로 인한 DDL 에러

Test plan

  • 로컬에서 ktlint 체크 통과
  • 배포 후 Redis Repository 경고 로그 사라지는지 확인
  • DB 테이블 정상 생성 확인
  • 이후 ddl-auto: update로 변경하여 재배포

🤖 Generated with Claude Code

- Add @EnableRedisRepositories with empty package to prevent JPA repositories from being scanned as Redis repositories
- Add @EnableCaching annotation for explicit cache enabling
- Temporarily set ddl-auto to create for database schema reset

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Copy link
Collaborator

@YangHJ2415 YangHJ2415 left a comment

Choose a reason for hiding this comment

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

확인했습니다.

@YangHJ2415 YangHJ2415 merged commit 64b24fd into main Oct 10, 2025
1 check passed
jungdongha pushed a commit that referenced this pull request Oct 10, 2025
- Add @EnableRedisRepositories with empty package to prevent JPA repositories from being scanned as Redis repositories
- Add @EnableCaching annotation for explicit cache enabling
- Temporarily set ddl-auto to create for database schema reset

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <[email protected]>
JIWONKIMS added a commit that referenced this pull request Oct 10, 2025
- Add @EnableJpaRepositories to KoreaTravelGuideApplication to explicitly scan JPA repositories
- Remove duplicate @EnableCaching and @EnableRedisRepositories from RedisConfig
- Change ddl-auto from create to update after database schema reset
- Fixes Redis Repository warning logs by properly separating JPA and Redis repository scans

This re-applies changes from PR #107 that were overwritten by PR #109.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
JIWONKIMS added a commit that referenced this pull request Oct 10, 2025
…110)

- Add @EnableJpaRepositories to KoreaTravelGuideApplication to explicitly scan JPA repositories
- Remove duplicate @EnableCaching and @EnableRedisRepositories from RedisConfig
- Change ddl-auto from create to update after database schema reset
- Fixes Redis Repository warning logs by properly separating JPA and Redis repository scans

This re-applies changes from PR #107 that were overwritten by PR #109.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <[email protected]>
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.

레디스 추가 작업

3 participants