Project 13

Spring Boot 테스트 중 레코드 스타일 호출로 인한 private access 오류 트러블슈팅

📎 이전 글: https://k-r-1.tistory.com/77 Spring JPA로 설계하는 챌린지 게시판 (2) : Controller, 테스트 코드📎 이전 글: https://k-r-1.tistory.com/59 Spring JPA로 설계하는 챌린지 게시판: Entity, Repository, Service📎 이전 글: https://k-r-1.tistory.com/47 Spring Boot 통합 테스트: AuthIntegrationTest (Auth 흐름 검증하기)📎 이전k-r-1.tistory.com 📌 문제 상황ChallengeServiceTest를 실행하던 중, 아래와 같은 컴파일 오류가 발생했다:'participants'이(가) 'ChallengeDetailResponse'에서 ..

Project 2025.12.05

Spring JPA로 설계하는 챌린지 게시판 (2) : Controller, 테스트 코드

📎 이전 글: https://k-r-1.tistory.com/59 Spring JPA로 설계하는 챌린지 게시판: Entity, Repository, Service📎 이전 글: https://k-r-1.tistory.com/47 Spring Boot 통합 테스트: AuthIntegrationTest (Auth 흐름 검증하기)📎 이전 글: https://k-r-1.tistory.com/44 Spring Boot Refresh 토큰 + Redis 저장/로그아웃 무효화 구현📎 이전 글:k-r-1.tistory.com [ 요약 ]더보기 컨트롤러 controller/ChallengeController.java챌린지 게시글과 참가·진행률·피드 작성 등 대부분의 기능을 REST 엔드포인트로 노출합니다. 목록 ..

Project 2025.11.24

Spring JPA로 설계하는 챌린지 게시판 (1) : Entity, Repository, Service

📎 이전 글: https://k-r-1.tistory.com/47 Spring Boot 통합 테스트: AuthIntegrationTest (Auth 흐름 검증하기)📎 이전 글: https://k-r-1.tistory.com/44 Spring Boot Refresh 토큰 + Redis 저장/로그아웃 무효화 구현📎 이전 글: https://k-r-1.tistory.com/42 Spring Boot JWT 보안 강화: 안전한 SecretKey 관리와 HS256 적용📎 이전 글: httk-r-1.tistory.com 챌린지 게시판을 위한 challenge_posts, challenge_participants, feeds 3개의 DB 테이블과 그에 대응하는 JPA 엔티티 클래스들 (ChallengePost..

Project 2025.10.24

Spring Boot 통합 테스트: AuthIntegrationTest (Auth 흐름 검증하기)

📎 이전 글: https://k-r-1.tistory.com/44 Spring Boot Refresh 토큰 + Redis 저장/로그아웃 무효화 구현📎 이전 글: https://k-r-1.tistory.com/42 Spring Boot JWT 보안 강화: 안전한 SecretKey 관리와 HS256 적용📎 이전 글: https://k-r-1.tistory.com/41 Spring Boot 회원/인증 시스템 구현 (JWT + Security + 테스트 코드)📎 이전k-r-1.tistory.comhttps://k-r-1.tistory.com/45 Spring Boot 테스트 빌드 실패 트러블슈팅 (PlaceholderResolutionException과 IntelliJ GradleWorkerMain 오..

Project 2025.10.02

Spring Boot 테스트 빌드 실패 트러블슈팅 (PlaceholderResolutionException과 IntelliJ GradleWorkerMain 오류 해결기)

📎 이전 글: https://k-r-1.tistory.com/44 1. 문제: Gradle 빌드 시 테스트 실패터미널에서 .\gradlew clean build를 실행하면 이런 오류가 나왔습니다. 초기에는 InvalidConfigDataPropertyException(설정값 누락)도 보였고, 이후에는 PlaceholderResolutionException(플레이스홀더 해석 실패)로 이어졌습니다. 둘 다 “필요한 키가 없다”는 동일 원인의 다른 표현입니다. Caused by: org.springframework.util.PlaceholderResolutionException: Could not resolve placeholder 'spring.data.redis.host' in value "${spri..

Project 2025.09.26

Spring Boot Refresh 토큰 + Redis 저장/로그아웃 무효화 구현

📎 이전 글: https://k-r-1.tistory.com/42 Spring Boot JWT 보안 강화: 안전한 SecretKey 관리와 HS256 적용📎 이전 글: https://k-r-1.tistory.com/41 Spring Boot 회원/인증 시스템 구현 (JWT + Security + 테스트 코드)📎 이전 글: https://k-r-1.tistory.com/40 Spring Boot에서 UserRepository & UserService 테스트 코드 작성하기📎 이k-r-1.tistory.com 지난 단계에서 Access 토큰 발급/검증은 완성했으니, 이번에는 “로그인 유지/재발급/로그아웃” 책임지는 Refresh 토큰 로직을 추가하려고 합니다! 🗝️ Refresh 토큰이 필요한 이유..

Project 2025.09.12

Spring Boot JWT 보안 강화: 안전한 SecretKey 관리와 HS256 적용

📎 이전 글: https://k-r-1.tistory.com/41 Spring Boot 회원/인증 시스템 구현 (JWT + Security + 테스트 코드)📎 이전 글: https://k-r-1.tistory.com/40 Spring Boot에서 UserRepository & UserService 테스트 코드 작성하기📎 이전 글: https://k-r-1.tistory.com/39 Spring Boot로 안전한 회원가입 로직 설계하기📎 이전 글: https://k-r-1.k-r-1.tistory.com 🚨 현재 코드에서 문제되는 부분 ✅ 키 길이지금 코드에서는 Keys.hmacShaKeyFor(secret.getBytes())로 문자열을 바로 비밀키로 쓰고 있어요.그런데 HS256 같은 알고리..

Project 2025.09.11

Spring Boot 회원/인증 시스템 구현 (JWT + Security + 테스트 코드)

📎 이전 글: https://k-r-1.tistory.com/40 Spring Boot에서 UserRepository & UserService 테스트 코드 작성하기📎 이전 글: https://k-r-1.tistory.com/39 Spring Boot로 안전한 회원가입 로직 설계하기📎 이전 글: https://k-r-1.tistory.com/38 User 엔티티와 application.yml 설정 과정 +) 배포 시점에 고려해야 할 설정들📎 이전k-r-1.tistory.com ✅ 현재 상황회원가입 / 아이디 중복검사 / 비밀번호 암호화(BCrypt)까지 구현 완료.지금 필요한 건 컨트롤러 + 보안만 붙이면 로그인 & 보호된 API가 동작하는 상태.🔒 보안 방법로그인한 사용자만 접근 가능한 API는..

Project 2025.08.28

Spring Boot에서 UserRepository & UserService 테스트 코드 작성하기

📎 이전 글: https://k-r-1.tistory.com/39 Spring Boot로 안전한 회원가입 로직 설계하기📎 이전 글: https://k-r-1.tistory.com/38 User 엔티티와 application.yml 설정 과정 +) 배포 시점에 고려해야 할 설정들📎 이전 글:https://k-r-1.tistory.com/37 Docker로 백엔드 개발 로컬 환경 통일하기 (with Git, DBeavek-r-1.tistory.com 스프링 부트 애플리케이션을 만들다 보면 “테스트 코드를 어디서부터 어떻게 짜야 하지?”라는 고민이 많았습니다.저도 이번에 회원가입 로직을 만들면서 레포지토리 테스트와 서비스 테스트를 직접 작성해봤습니다.Repository 테스트 (DB 연동 → 통합 테스트..

Project 2025.08.24

Spring Boot로 안전한 회원가입 로직 설계하기

📎 이전 글: https://k-r-1.tistory.com/38 User 엔티티와 application.yml 설정 과정 +) 배포 시점에 고려해야 할 설정들📎 이전 글:https://k-r-1.tistory.com/37 Docker로 백엔드 개발 로컬 환경 통일하기 (with Git, DBeaver, .env) + 트러블슈팅 정리팀원과 함께 React Native(Expo)와 Spring Boot를 이용해 프로젝트를 시작했습니다.프로k-r-1.tistory.com Spring Boot로 백엔드 프로젝트를 직접 구성하며 회원가입 기능을 구현하는 과정을 공부하고 있습니다.서비스 구조를 설계하기 위해 학습한 내용들을 바탕으로 정리해 보았습니다. ✅ 이번 구현 목표기능설명이메일/사용자 이름 중복 확인이미..

Project 2025.08.09