- 短信 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
public class SmsAliYunClient implements SmsClient {
@Value("${sms.aliYun.accessKeyId}")
@Value("${sms.aliYun.accessKeyId?:'default_value'}")
private String accessKeyId;
@Value("${sms.aliYun.accessSecret}")
@Value("${sms.aliYun.accessSecret?:'default_value'}")
private String accessSecret;
private static final String DOMAIN = "dysmsapi.aliyuncs.com";

View File

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

View File

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