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);