@RestController
@RequiredArgsConstructor
public class MemberController {
@GetMapping("/test/1") // 권환 확인용
public Collection<? extends GrantedAuthority> check(){
return SecurityContextHolder.getContext().getAuthentication().getAuthorities();
}
아주 간단하지만 확실한 방법.
'프로젝트 > SpringBoot Side Project' 카테고리의 다른 글
트러블 슈팅 : JPA leftjoin N+1 문제 (0) | 2024.01.24 |
---|---|
대댓글 JPA로 구현하기 (1) | 2024.01.23 |
Elastic Beanstalk 서버 시간 변경 (0) | 2023.12.21 |
트러블슈팅 (0) | 2023.12.14 |
blog ERD (0) | 2023.12.13 |