강의

멘토링

커뮤니티

Inflearn Community Q&A

afgman4's profile image
afgman4

asked

Spring Boot Security & JWT Lecture

Spring Boot Security Lecture 10 - Facebook Login Complete

@Bean 때문에 에러나는 부분

Written on

·

317

0

String password = bCryptPasswordEncoder.encode("겟인데어");
부분 때문에 에러가 납니다.

@Bean 때문에 AutoWired 랑 겹쳐서 순환처리 하면서 에러가 나는듯 한데
이부분 어떻게 고쳐야 할지 모르겠습니다.
생성자 주입 방식으로 변경해도 나는데..
소스를 내려받아보니.. password 처리부분은 없던데.
강좌에서는 password 넣는 부분이 있네요..
해결책은 어떻게 해야 할까요?

Spring Securityspringjwt

Answer 2

0

main에서 di한다는 것이 잘 이해가 안 되는데 코드 좀 올려 주실 수 있나요? ㅠㅠ

0

metacoding님의 프로필 이미지
metacoding
Instructor

몇강에 어느 부분인지 알려주실수 있나요?

 

그리고 본인 github 주소 주실수 있나요?

 

가장 쉬운 방법은 main() 메서드 있는 파일에서 BCrytp 이거 DI 하면 문제없어요 ㅎ

afgman4님의 프로필 이미지
afgman4
Questioner

네.. main에서 di 하니 되네요.. 감사합니다.

afgman4's profile image
afgman4

asked

Ask a question