Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一个小疑惑 #30

Closed
Gabriel-1023 opened this issue Mar 24, 2023 · 1 comment
Closed

一个小疑惑 #30

Gabriel-1023 opened this issue Mar 24, 2023 · 1 comment

Comments

@Gabriel-1023
Copy link

可能是我Spring还没有学明白,不太理解为什么com/suke/czx/authentication/SecurityConfigurer.java 中的authenticationSuccessHandler() 等方法要手动 new 实例,而不是使用依赖注入的方式呢?谢谢!

@yzcheng90
Copy link
Owner

这个 AuthenticationSuccessHandler 接口 springsecurity 没有使用bean查找注入,而是new了一个默认实现,所以如果要自定义只能再给一个自定义实现去set 替换

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants