blurooo / spring-security-demo Goto Github PK
View Code? Open in Web Editor NEW《Spring Security 实战》源码
《Spring Security 实战》源码
chapter3_1的源码没提交吧?
第14章的源码还没有吗?
@component
public class myAuthenticationProvider extends DaoAuthenticationProvider {
private HttpServletRequest request;
public myAuthenticationProvider(UserDetailsService userDetailsService, HttpServletRequest request, PasswordEncoder passwordEncoder) {
this.request = request;
// 注意是使用set
this.setUserDetailsService(userDetailsService);
this.setPasswordEncoder(passwordEncoder);
}
@Override
protected void additionalAuthenticationChecks(UserDetails userDetails,
UsernamePasswordAuthenticationToken authentication) throws AuthenticationException {
super.additionalAuthenticationChecks(userDetails, authentication);
}
}
4.2章节里为什么搞得这么麻烦?
P53页看的时候 就感觉不太对
不知道这些代码的内容是怎么来的。。。很多代码都是new对象而不是注入
今天在看到14章的时候,由于自己比较菜,动手写代码的时候怎么弄都有问题。今天中午给作者留言了。作者半个小时内就上传了demo。谢谢。
第14章demo地址 https://github.com/blurooo/spring-security-oauth2-sample
按照书上的代码手工输入无法运行,请提供一下代码!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.