-
Spring Security - @WebSecurityConfigurerAdapter 변경(+ spring security dependencies 설정)백엔드/spring 2023. 2. 2. 19:21
####
10개 프로젝트로 완성하는 백엔드 웹개발(Java/Spring) 초격차 패키지 Online. PART 2.10 로그인 페이지 만들기
을 수강한 내용을 토대로 작성한 내용입니다.
A. Spring security 관련 dependencies 설정
spring security 만 설정하면 security 관련 dependency :
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity5'가 안뜰 수 있으니 반드시 저 셋을 같이 dependencies로 잡아 추가할 것B.
혼자 Spring security를 공부할 때, @WebSecurityConfigurerAdapter를 상속받아 configure를 구현하는 방식을 사용했는데,
아마도 2.9, 3.0 이후 버전에서는 deprecated되어 사용되지 않을 것이라 한다.
Spring Security without the WebSecurityConfigurerAdapter
Spring | Home
Cloud Your code, any cloud—we’ve got you covered. Connect and scale your services, whatever your platform.
spring.io
- 기존 방식(deprecated 예정)
- 이후 방식
'백엔드 > spring' 카테고리의 다른 글
spring "Argument are different!" 해결 (0) 2023.02.09 Spring boot: pageable, getReferencedId (0) 2023.02.06 Thymeleaf 와 뷰 템플릿 엔진 원리 (0) 2023.02.02 spring 과 Rest API 에 대해 (0) 2023.02.01 10개 프로젝트로 완성하는 백엔드 웹개발(Java/Spring) 초격차 패키지 Online. 2.2.6: API 구현 ~ 7:뷰 엔드포인트 정의 (3) 2023.02.01