假设我的WebSecurityConfigurerAdapter
中有以下内容
protected void configure(HttpSecurity http) throws Exception {
http
.httpBasic().and().authorizeRequests()
.antMatchers("/login", "/templates/forgotpassword", "/user/forgot-password",
"/user/reset-password", "/reset-password/**").permitAll()
.anyRequest().authenticated()
.and()
.csrf()
.disable();
}
我该怎么办?
/login
,/templates/forgotpassword
,/user/forgot-password
等/login
,我该如何检查它是否被允许