- 短信 key 值添加 default_value

This commit is contained in:
sin-ning@aliyun.com 2019-05-27 22:37:12 +08:00
parent e1292e3867
commit 3ab6d4dc61
3 changed files with 6 additions and 6 deletions

View File

@ -25,9 +25,9 @@ import java.util.Map;
@Component @Component
public class SmsAliYunClient implements SmsClient { public class SmsAliYunClient implements SmsClient {
@Value("${sms.aliYun.accessKeyId}") @Value("${sms.aliYun.accessKeyId?:'default_value'}")
private String accessKeyId; private String accessKeyId;
@Value("${sms.aliYun.accessSecret}") @Value("${sms.aliYun.accessSecret?:'default_value'}")
private String accessSecret; private String accessSecret;
private static final String DOMAIN = "dysmsapi.aliyuncs.com"; private static final String DOMAIN = "dysmsapi.aliyuncs.com";

View File

@ -91,7 +91,7 @@ public class SmsYunPianClient implements SmsClient {
//编码格式发送编码格式统一用UTF-8 //编码格式发送编码格式统一用UTF-8
private static String ENCODING = "UTF-8"; private static String ENCODING = "UTF-8";
@Value("${sms.yunPian.apiKey}") @Value("${sms.yunPian.apiKey?:'default_value'}")
private String apiKey; private String apiKey;
@Override @Override

View File

@ -27,10 +27,10 @@ mybatis-plus:
# sms # sms
sms: sms:
yunPian: yunPian:
apiKey: ${YUN_PIAN} apiKey:
aliYun: aliYun:
accessKeyId: ${ALI_YUN_KEY_ID} accessKeyId:
accessSecret: ${ALI_YUN_SECRET} accessSecret:
# dubbo # dubbo
dubbo: dubbo: