Skip to content

Commit

Permalink
fix: Add @Autowired on SecurityConfig (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
youjin09222 committed Nov 16, 2023
1 parent f93661f commit e68c0d5
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.gdsc_teamb.servertoyproject.jwt;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity;
Expand All @@ -17,6 +18,8 @@
@EnableWebSecurity // 웹 보안 활성화 (CSRF 공격 방지)
@EnableMethodSecurity // 메서드 레벨의 보안 설정 활성화
public class SecurityConfig {

@Autowired // 의존성 주입
private JwtTokenProvider jwtTokenProvider;

@Bean
Expand Down

0 comments on commit e68c0d5

Please sign in to comment.