SecurityFilterChain 관련 Class,Method

- spring 이 시작되면, ServletContext 가 동작후 RootApplicationContext가 같이 동작되고 빈들을 관리한다.
- spring security 에 의해 설정된 SecurityFilterChain 이 DelegateFilterProxy와 FilterChainProxy에 의해 관리된다
- request가 들어오면 각 필터의 doFilter메서드 호출에 따라 지정된 작업을 수행한다. 각 필터들은 request를 수정할 수 있다. → reponse도 마찬가지
- DelegatingFilterProxy 에서 앞의 Filter들을 거쳐 들어온 Request를 Spring 으로 던져 준다.
FilterChainProxy
SecurityFilterChain
Security 의존성 설정시
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
- 이렇게 Security 의존성을 설정하게 되면 처음 페이지에 들어갈 때 로그인을 요청하게 된다

- 초기 아이디는 user 이며 패스워드는 서버 실행시 콘솔창에 나온다.

회원가입 - joinForm, join