티스토리 뷰
나의 개발 여정
[Spring Security] authorizeRequests() -> authorizeHttpRequests
ddoddi14 2023. 12. 22. 10:02spring security filterChain authorizeRequests() 사용법 변경
http
.authorizeRequests()
.anyRequest().authenticated()
.authorizeHttpRequests(authorize ->
authorize
.requestMatchers("/actuator/**").hasRole("ADMIN")
.requestMatchers("/admin/**").hasRole("ADMIN")
.anyRequest().permitAll())
'나의 개발 여정' 카테고리의 다른 글
| [프로젝트][blog] 모바일 화면 개선 (bootstrap offcanvas 활용) (0) | 2023.12.22 |
|---|---|
| [프로젝트][blog] 게시글 임시저장 (feat. localStorage) (0) | 2023.12.22 |
| [프로젝트][blog] 중복 없이 조회수 카운트하기 (0) | 2023.12.22 |
최근에 올라온 글
- Total
- Today
- Yesterday