스프링 시큐리티 의존성 추가


pom.xml

<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-security</artifactId>
</dependency>

의존성 추가 시 일어나는 일

문제점

사용자 정의 보안 기능 구현


@Configuration
@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter {

	@Override
	protected void configure(HttpSecurity http) throws Exception { 
		http
			.authorizeRequests()			
			.anyRequest().authenticated()		
		.and()
			.formLogin(); 			
	}

}

HTTP Basic 인증