Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spring:
host: smtp.gmail.com
port: 587
username: ${MAIL_USERNAME:whereg87@gmail.com}
password: ${MAIL_PASSWORD:}
password: ${MAIL_PASSWORD}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

${MAIL_PASSWORD} 환경 변수의 기본값 :을 제거하면, 로컬 개발 환경 등에서 해당 환경 변수가 설정되어 있지 않을 때 애플리케이션 기동 시 Could not resolve placeholder 예외가 발생하여 애플리케이션이 실행되지 않습니다. 이메일 발송 기능이 필수가 아닌 로컬 환경에서도 애플리케이션이 정상적으로 실행될 수 있도록 빈 문자열(:)이라도 기본값으로 제공하는 것을 권장합니다.

    password: ${MAIL_PASSWORD:}

properties:
mail:
smtp:
Expand Down
Loading