HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🛁
공부기록
/
🍀
Spring
/
💼
CH-12 권한설정과 표현식
💼

CH-12 권한설정과 표현식

태그

인가 API

 

권한설정

선언적 방식

  • URL
    • http.antMatchers(”/users”/**).hasRole(”USER”)
notion image
notion image
  • Method
    • @PreAuthorize(”hasRole(’USER’)”)
    • public void user() {sout(”useR”)}
 

동적방식 - DB 연동 프로그래밍

  • URL
  • Method