dependencies {
implementation 'org.springframework.boot:spring-boot-starter-security'
testImplementation 'org.springframework.security:spring-security-test'
}
스프링부트는 자동적으로
springSecurityFilterChain이라는 이름인 서블릿 필터 빈을 생성한다.
UserDetailsService 빈을 만든다.
User라는 사용자 이름과 콘솔에 출력되는 랜덤 생성한 비밀번호를 가지고 있다.springSecurityFilterChain 필터를 등록하고 모든 요청을 처리하게 한다.스프링부트 기능 요약
user라는 이름과 콘솔에 로깅되는 비밀번호를 사용한 폼 기반 인증 지원