Skip to Content
Suffering builds character
아카이브18.spring Security스프링 시큐리티3.인증실습Basic 인증4.서버 실행

4.서버 실행

1. 의존성 설치

Spring Initializr에서 Spring Web, Spring Security 의존성만 설치 후 서버 실행

2. 서버 실행 및 로그 확인

스프링 부트의 자동 구성(Auto Configuration)에 의해 UserDetailsService가 동작, 테스트용 기본 패스워드가 생성됨

terminal
WARN 15632 --- [main] .s.s.UserDetailsServiceAutoConfiguration : Using generated security password: 8cd8bc26-bb3a-4d04-9466-4e1e3647eb75 This generated password is for development use only. Your security configuration must be updated before running your application in production.

기본적인 시큐리티 필터들이 등록됨

terminal
INFO 15632 --- [main] o.s.s.web.DefaultSecurityFilterChain : Will secure any request with [     org.springframework.security.web.session.DisableEncodeUrlFilter@9301672,     org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@4ceff87d,     org.springframework.security.web.context.SecurityContextPersistenceFilter@14fded9d,     org.springframework.security.web.header.HeaderWriterFilter@40fa8766,     org.springframework.security.web.csrf.CsrfFilter@365cdacf,     org.springframework.security.web.authentication.logout.LogoutFilter@2d760326,     org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@6ef60295,     org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter@4ecd00b5,     org.springframework.security.web.authentication.ui.DefaultLogoutPageGeneratingFilter@3238e2aa,     org.springframework.security.web.authentication.www.BasicAuthenticationFilter@4130955c,     org.springframework.security.web.savedrequest.RequestCacheAwareFilter@4a3bd45b,     org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@34c70b5e,     org.springframework.security.web.authentication.AnonymousAuthenticationFilter@2c7db926,     org.springframework.security.web.session.SessionManagementFilter@663f237a,     org.springframework.security.web.access.ExceptionTranslationFilter@69cd1085,     org.springframework.security.web.access.intercept.FilterSecurityInterceptor@6a9344f5 ]
Last updated on