Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 다이나모디비
- Route53
- testresttemplate
- Java
- query
- 자바스프링
- 스프링테스트
- filterexpression
- AWS
- 스프링
- MockMvc
- 개발
- DynamoDB
- 테스트코드
- Springsecurity
- markerinterface
- 로드밸런서
- IdClass
- 자바
- partiql
- awscloud
- 오류
- awscli
- Spring
- EmbeddedId
- javaspring
- compositekey
- 도메인
- annotation
- secondaryindex
Archives
- Today
- Total
아장아장 개발 일기
Spring Security ‘hasAnyAuthority()’ VS ‘hasAnyRole()’ 본문
‘hasAnyRole()’을 사용하려면 role enum 클래스에 롤 이름이 ‘Role_’ 접두사와 함께 쓰여야합니다.
‘hasAnyAuthority()’는 접두사 없이 사용합니다.
Role은 큰 개념의 역할을 의미하는 반면, Authority는 보다 작은 기능 단위의 권한을 의미합니다.
참고 : https://minholee93.tistory.com/entry/Spring-Security-Authorities-Role
'개발 > Spring' 카테고리의 다른 글
Jar 파일 PathNotFound 오류 해결 방법 (0) | 2022.10.21 |
---|---|
@Component VS @Service VS @Repository 어노테이션 차이 (0) | 2022.08.18 |
Spring MockMvc 사용법 (0) | 2022.04.19 |
Spring MockMvc와 TestRestTemplate 비교 (0) | 2022.04.19 |
Lombok Builder로 초기값 세팅하기 (0) | 2022.04.01 |
Comments