Comments (2)
看一下这个类AbstractUserDetailsAuthenticationProvider的authenticate()方法,里面调用了DaoAuthenticationProvider的retrieveUser()方法,这个里面就是用到了UserDetailService的loadUserByUsername()方法
from springall.
@Stan982314760 谢谢,感谢指明了方向。
虽然我没有找到在没有注册的情况下,Spring Security是如何找到实现的子类的。但是经过查找相关资料,建议在BrowserSecurityConfig类下,增加如下代码,这样用户应该会知道是怎么配置了。
` @bean
public UserDetailsService userDetailsService() {
return new UserDetailService();
}
@Override
protected void configure(AuthenticationManagerBuilder auth) throws Exception {
auth.userDetailsService(userDetailsService()).passwordEncoder(passwordEncoder());
}`
from springall.
Related Issues (20)
- 《Spring Boot实战派》
- 示例springboot版本都是1.x的版本 HOT 1
- https://mrbird.cc/无法访问 HOT 1
- 62.Spring-Boot-Shiro-JWT
- 关于Spring教程中第一章的《深入学习Spring组件注册》中的错误 HOT 1
- 博客很卡,有没有考虑加个cdn
- 老哥还在吗?博客还写吗?
- 博客已经打不开了 HOT 4
- MBI
- 01 HOT 1
- Bank HOT 1
- 给你一颗小星星 HOT 2
- spring-batch批处理多步骤时,一直执行两个步骤就完了,换了同样的版本结果也不对 HOT 2
- 博客微服务搭建想学习课程 HOT 3
- Plz use English ? HOT 2
- 有没有中间件的使用学习
- 令人敬佩的 HOT 2
- 大佬,FEBS Cloud为啥404了 HOT 2
- 深入理解Spring BeanPostProcessor & InstantiationAwareBeanPostProcessor 部分 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from springall.