Skip to content

Commit

Permalink
fix: 환경 변수 주입을 위한 final 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
SHEOMM committed Apr 2, 2024
1 parent 68faa8e commit f2e9fff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class AttendanceController {
private final AttendeeService attendeeService;

@Value("${cookie.encode}")
private final String COOKIE_ENCODE = "SRCT";
private String COOKIE_ENCODE;

//FIXME: 중복 인원인 경우 코드 중복이 생겨도 API 분리가 나아 보인다. 한 API에서 너무 많은 일을 하는 중이다.
// FIXME: 사실상 다른 형태의 response를 억지로 하나의 controller에서 반환한다고 봐도 무방하다. -> 프론트와 합의 후 변경.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.Arrays;
import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
Expand All @@ -19,6 +20,8 @@
@RequiredArgsConstructor
public class SecurityConfig {



@Bean
public PasswordEncoder passwordEncoder() {
return new BCryptPasswordEncoder();
Expand Down

0 comments on commit f2e9fff

Please sign in to comment.