inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

JJ NAM님의 게시글

JJ NAM JJ NAM

@philipwq39632868

수강평 작성수
1
평균평점
5.0

게시글 17

질문&답변

CustomAuthenticationProvider는 왜 Autowired를 사용할 수 없나요?

Error creating bean with name 'userController': Unsatisfied dependency expressed through field 'passwordEncoder'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'securityConfig': Unsatisfied dependency expressed through field 'customAuthenticationProvider'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'customAuthenticationProvider': Unsatisfied dependency expressed through field 'passwordEncoder'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'passwordEncoder': Requested bean is currently in creation: Is there an unresolvable circular reference? 이런 에러가 뜹니다

좋아요수
0
댓글수
4
조회수
887

질문&답변

CustomAuthenticationProvider는 왜 Autowired를 사용할 수 없나요?

https://github.com/JeongJin984/SpringSecurity/blob/master/SpringSecurity2/src/main/java/com/example/SpringSecurity2/Security/SecurityConfig.java 여기에서 Provider @Autowired 부분에서 passwordEncoder가 오류가 납니다

좋아요수
0
댓글수
4
조회수
887

질문&답변

제가 passport_Google_OAuth_2.0 을 따라서 작성을 한 후 saga에서 서버로 /google/ 쿼리를 넣었더니 cors 에러가 뜹니다

api를 쓰게 되면 제가 DB를 사용해야해서 현재 api 폴더내에 db객체를 define하는 js 파일들이 들어 있습니다. 그러면 request가 생길 때 마다 db.sync()를 하게 됩니다. 그러면 느려지는 등의 문제가 생길 수 있지 않나요? 그리고 세션도 만들어야 해서 제 생각에는 custom server로 하는것이 맞다고 생각합니다. 제 생각이 잘못되었나요?

좋아요수
0
댓글수
10
조회수
1389

질문&답변

쿠키 & 세션 질문

https://jeong-pro.tistory.com/80

좋아요수
0
댓글수
5
조회수
306