프로젝트 이슈 해결 - 1

이승언·2025년 3월 13일

위와 같이 코딩을 하니,

Field bCryptPasswordEncoder in LSE.HealthPower.service.UserService required a bean of type 'org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder' that could not be found.

라는 에러가 뜸.

=> passwordEncoder 가 빈으로 등록되지 않아서 생기는 문제
(BCryptPasswordEncoder를 Super Class로 한 Class가 없어서)

아래와 같이 코드를 수정하니 정상적으로 작동함.

profile
꾸준히 점진적으로 성장하는 인간

0개의 댓글