inflearn logo
Khóa học

Khóa học

Chia sẻ kiến thức

Bài viết của JJ NAM

JJ NAM JJ NAM

@philipwq39632868

Số lượng đánh giá đã viết
1
Xếp hạng trung bình
5.0

Bài viết 15

Hỏi & Đáp

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? 이런 에러가 뜹니다

Lượt thích
0
Số bình luận
4
Lượt xem
906

Hỏi & Đáp

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

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

Lượt thích
0
Số bình luận
4
Lượt xem
906

Hỏi & Đáp

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

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

Lượt thích
0
Số bình luận
10
Lượt xem
1448

Hỏi & Đáp

쿠키 & 세션 질문

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

Lượt thích
0
Số bình luận
5
Lượt xem
345

Hỏi & Đáp

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

Google's OAuth 2.0 endpoint is at https://accounts.google.com/o/oauth2/v2/auth . This endpoint is accessible only over HTTPS. Plain HTTP connections are refused. The Google authorization server supports the following query string parameters for web server applications: google에 이렇게 설명이 되어있는데 혹시 http라서 문제가 된건 아닐까요?

Lượt thích
0
Số bình luận
10
Lượt xem
1448