File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
src/main/java/cmf/commitField/global/security Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ package cmf .commitField .global .security ;
2+
3+ import org .springframework .context .annotation .Bean ;
4+ import org .springframework .context .annotation .Configuration ;
5+ import org .springframework .security .config .annotation .web .builders .HttpSecurity ;
6+ import org .springframework .security .config .annotation .web .configuration .EnableWebSecurity ;
7+ import org .springframework .security .web .SecurityFilterChain ;
8+
9+ @ Configuration
10+ @ EnableWebSecurity
11+ public class SecurityConfig {
12+ @ Bean
13+ protected SecurityFilterChain config (HttpSecurity http ) throws Exception {
14+ http
15+ .oauth2Login (oauth2 -> oauth2
16+ .loginPage ("/login" ) // 로그인 페이지 지정
17+ );
18+ return http .build ();
19+ }
20+ }
You can’t perform that action at this time.
0 commit comments