Configuration1 [Spring Security] 기본 설정 파일 생성 Spring Security 설치 스프링 시큐리티의 기본 동작 원리와 구조에 대해서 알아보았으니, 이를 사용하기 위해 Spring Security를 설치해보자. 설치하는 것은 어렵지 않다. 스프링 프로젝트의 build.gradle 파일에서 dependencies 부분에 다음을 추가하면 된다. implementation 'org.springframework.boot:spring-boot-starter-security' testImplementation 'org.springframework.security:spring-security-test' 두번째 줄은 test 환경에서 스프링 시큐리티를 동작하도록 하기 위함이다. 해당 dependency를 추가하고 gradle 파일을 다시 reloading 한다. ( .. 2024. 1. 30. 이전 1 다음 728x90 반응형