启用 HTTP Basic 认证
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.formLogin()
.loginPage("/login");
.and()
.httpBasic()
.realmName("Spittr")
.and()
...
}Last updated
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.formLogin()
.loginPage("/login");
.and()
.httpBasic()
.realmName("Spittr")
.and()
...
}Last updated