Springboot1 [스프링시큐리티] 유효하지않은 URL에 대한 로그인요청 방지 .anyRequest().authenticated(); Spring Security 설정 중에 아래와 같은 설정을 해봤을 것이다. @Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests() .mvcMatchers("/sample/home", "/sample/signup").permitAll() .mvcMatchers("/sample/admin").hasRole("ADMIN") .mvcMatchers("/sample/user").hasRole("USER") .anyRequest().authenticated(); }이때 만약 익명의 사용자가 유효하지않은 url에 대한 요청을 보내면 어떻게 될까.. 2021. 7. 2. 이전 1 다음