diff --git a/blog-api/src/main/resources/application-dev.properties b/blog-api/src/main/resources/application-dev.properties index 4a0c23b7..854efa8b 100644 --- a/blog-api/src/main/resources/application-dev.properties +++ b/blog-api/src/main/resources/application-dev.properties @@ -21,8 +21,12 @@ logging.file=blog-api/log/blog-dev # 1000 * 60 * 60 * 24 * 3 三天 token.expireTime=259200000 +# 部署上线务必修改此配置,否则无法保证token安全性 token.secretKey=abcdefghijklmnopqrstuvwxyz +# 阿里云邮箱,port=25在Windows系统下有效,Linux系统需要改为465并将下面两行取消注释,其它邮箱服务商配置参考关键字"spring mail 服务器" +# spring.mail.properties.mail.smtp.socketFactory.port=465 +# spring.mail.properties.mail.smtp.ssl.enable=true spring.mail.host=smtp.mxhichina.com spring.mail.port=25 spring.mail.username=邮箱账号