@PreAuthorize("isAuthenticated()") <- 로그인을 해야만 사용할 수 메서드로 변함
@EnableMethodSecurity(prePostEnabled = true) <- SecurityConfig에다가 설정을 해야 @Preauthorize사용가능
public class SecurityConfig { (... 생략 ...) }
https://wikidocs.net/162330#_4
'메모장' 카테고리의 다른 글
기본 생성자없이 ObjectMapper (0) | 2023.11.16 |
---|---|
자바 스크립트가 있으면 좋은 위치 (0) | 2023.11.16 |
Validation 종류 (0) | 2023.11.15 |
JpaRepository 검색 메서드 (0) | 2023.11.15 |
osiv에 대하여 (0) | 2023.11.15 |