From 9e7929da6b521d12ae75b13ab74ce056d0b96a18 Mon Sep 17 00:00:00 2001 From: sohot8653 Date: Fri, 22 Aug 2025 10:17:12 +0900 Subject: [PATCH] =?UTF-8?q?[=ED=9A=8C=EC=9B=90=20=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=EA=B0=9C=EC=84=A0]=20loadUserByUsername=20=EB=A9=94=EC=84=9C?= =?UTF-8?q?=EB=93=9C=EC=97=90=EC=84=9C=20=EC=82=AC=EC=9A=A9=EC=9E=90=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=20=EC=8B=A4=ED=8C=A8=20=EC=8B=9C=20=EB=B0=9C?= =?UTF-8?q?=EC=83=9D=ED=95=98=EB=8A=94=20=EC=98=88=EC=99=B8=20=EB=A9=94?= =?UTF-8?q?=EC=8B=9C=EC=A7=80=EB=A5=BC=20=ED=95=9C=EA=B5=AD=EC=96=B4?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/base/member/service/MemberServiceImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/bio/bio_backend/domain/base/member/service/MemberServiceImpl.java b/src/main/java/com/bio/bio_backend/domain/base/member/service/MemberServiceImpl.java index d78fd35..4b3b077 100644 --- a/src/main/java/com/bio/bio_backend/domain/base/member/service/MemberServiceImpl.java +++ b/src/main/java/com/bio/bio_backend/domain/base/member/service/MemberServiceImpl.java @@ -32,9 +32,8 @@ public class MemberServiceImpl implements MemberService { @Override public UserDetails loadUserByUsername(String id) throws UsernameNotFoundException { - // JPA 레파지토리를 사용하여 회원 조회 Member member = memberRepository.findByUserId(id) - .orElseThrow(() -> new UsernameNotFoundException("User not found with id : " + id)); + .orElseThrow(() -> new UsernameNotFoundException("사용자를 찾을 수 없습니다: " + id)); // MapStruct를 사용하여 Member 엔티티를 MemberDto로 변환 MemberDto memberDto = memberMapper.toMemberDto(member);