강의

멘토링

커뮤니티

Inflearn Community Q&A

cxoxee's profile image
cxoxee

asked

Spring Boot Security & JWT Lecture

Spring Boot Security 5 - Authorization

@EnableGlobalMethodSecurity(securedEnabled = true)

Resolved

Written on

·

738

0

@EnableGlobalMethodSecurity(securedEnabled = true)

만 작성해줘도 PreAuthorize 어노테이션이 잘 작동되는 것 같은데 securedEnabled랑 prePostEnabled 둘 중에 하나만 적어주면 되는 건가요?

springspring-securityjwt

Answer 1

0

prePostEnabled = ture가 기본값이어서 선언하지 않아도 잘 작동합니다.

CHOHEE CHA님의 프로필 이미지
CHOHEE CHA
Questioner

답변 감사합니당😊

cxoxee's profile image
cxoxee

asked

Ask a question