@ConstructorBinding
-
properties 불변 객체로 주입하기프로젝트/잡스캐너 2022. 9. 8. 21:23
로그인시 발급하는 JWT를 생성할 때 secret 값과 expiry 값, 소셜 로그인할 때 url, client-id, client-secret 값 등을 application.yml에 설정하고 클래스에서는 @Value를 통해 주입했다. auth: client: kakao: token-url: https://kauth.kakao.com/oauth/token redirect-url: https://dev.jobscanner.app/oauth/callback/kakao client-id: client-secret: google: token-url: https://oauth2.googleapis.com/token redirect-url: https://dev.jobscanner.app/oauth/callback..