반응형
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 | 29 | 30 | 31 |
Tags
- no sources given
- xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- error
- java 여러개 버전
- java 11
- Medium
- springboot
- aws
- LeetCode
- AWS CLI
- java 버전 변경
- OpenFeign
- property or field 'jobparameters' cannot be found on object of type
- No tests found for given includes
- java 1.8 11
- 스프링부트테스트
- java version
- log error
- querydsl no sources given
- parse
- java
- mac os git error
- maybe not public or not valid?
- springboottest
- Java 1.8
- JUnit
- el1008e
- springbatch error
- yum install java
- easy
Archives
- Today
- Total
목록admin user role (1)
쩨이엠 개발 블로그
[ Spring ] SecurityConfig AccessDecisionManager / ExpressionHandler
Spring Project 중 SecurityConfig에서 ROLE을 줄 때 Admin은 User의 롤을 포함한다라는 정책을 줄 때 쓰는 방법 @Configuration @EnableWebSecurity public class SecurityConfig extends WebSecurityConfigurerAdapter { @Override public void configure(HttpSecurity http) throws Exception{ http.authorizeRequests() .mvcMatchers("/admin").hasRole("ADMIN") .mvcMatchers("/user").hasRole("USER") .expressionHandler(expressionHandler()); // ..
개발/Spring
2022. 8. 25. 15:12