|
|
|
创建一个配置类,继承`WebSecurityConfigurerAdapter`,并重写`configure(HttpSecurity http)`和`configure(AuthenticationManagerBuilder auth)`方法,分别设置安全配置和身份验证规则。例如: |
|
|
|
创建一个配置类,继承`WebSecurityConfigurerAdapter`,并重写`configure(HttpSecurity http)`和`configure(AuthenticationManagerBuilder auth)`方法,分别设置安全配置和身份验证规则。例如: |