AS
Size: a a a
AS
S
AS
S
VS
AE
МК
МК
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
.antMatchers("/api/stats").hasAnyRole("ADMIN")
.antMatchers("/api/savevisit").hasAnyRole("USER", "ADMIN")
.anyRequest().permitAll()
.and()
.csrf().disable()
.httpBasic();
}
МК
✔D
S
RS
S
O
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
.antMatchers("/api/stats").hasAnyRole("ADMIN")
.antMatchers("/api/savevisit").hasAnyRole("USER", "ADMIN")
.anyRequest().permitAll()
.and()
.csrf().disable()
.httpBasic();
}
МК
EI
EI
ROLE_
вапшеEI
L
AE