jwt.secret=your_secret_key_here

이 코드를 application.properties 넣으면 된다.

jwt:
  secret: your_secret_key_here

이거는 yml일경우

 

그런데 secret_key는 어떻게 구하냐

openssl rand -hex 32

이 코드를 쓰면 되는데

어디에 쓰냐면

 

윈도우 기준으로 가장 쉬운 방법은

git bash에 입력하는거다.

 

그리고 git bash는

 

복사는 ctrl + insert

붙여넣기는 shift + insert

+ Recent posts