김영범

김영범

  • 분류 전체보기 (82)
    • 네트워크 (18)
      • 웹 (16)
    • 스프링 (20)
    • 자바 (9)
    • 프로젝트 (4)
    • 데이터베이스 (5)
    • 기타 (6)
    • 코테 (10)
      • 알고리즘 (3)
      • 자료구조 (7)
      • 프로그래머스 (0)
    • 도커 (10)
  • 홈
  • 태그
  • 방명록
RSS 피드
로그인
로그아웃 글쓰기 관리

김영범

컨텐츠 검색

태그

JWT 컨테이너 uncheck exception 가상화 docker JVM compile GC Jackson AuthenticationPrincipalArgumentResolver proxy 하이퍼바이저 AOP NGINX java http AOT hotspot JVM JPA JIT

최근글

댓글

공지사항

아카이브

AuthenticationPrincipalArgumentResolver(1)

  • @AuthenticationPrincipal 사용

    Spring Security에서 인증된 사용자 정보를 가져오는 방법으로 자주 사용되는 @AuthenticationPrincipal에 대해서 알아보겠습니다. 이 글에서는 다음과 같은 환경을 가정합니다.JWT 기반 인증 방식 사용OncePerRequestFilter를 상속한 JWT 검증 필터 구현UserDetails를 구현한 커스텀 클래스(CustomUserDetails) 사용Spring Security의 구조SecurityContextHolder └─ SecurityContext └─ Authentication ├─ Principal (사용자 정보 객체, 보통 UserDetails 구현체) ├─ Credentials (자..

    2025.01.07
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바