package com.dg.core;
|
|
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.context.annotation.PropertySource;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* 阿里云短信配置
|
*/
|
@Component
|
@PropertySource(value = "classpath:application-sms.properties",encoding = "UTF-8")
|
public class AliyunConfig {
|
|
@Value("${aliyun.key}")
|
private String key;
|
|
@Value("${aliyun.screct}")
|
|
private String screct;
|
@Value("${aliyun.SignName}")
|
private String SignName;
|
|
@Value("${aliyun.TemplateCode}")
|
private String TemplateCode;
|
|
|
public String getKey() {
|
return key;
|
}
|
|
public void setKey(String key) {
|
this.key = key;
|
}
|
|
public String getScrect() {
|
return screct;
|
}
|
|
public void setScrect(String screct) {
|
this.screct = screct;
|
}
|
|
public String getSignName() {
|
return SignName;
|
}
|
|
public void setSignName(String signName) {
|
SignName = signName;
|
}
|
|
public String getTemplateCode() {
|
return TemplateCode;
|
}
|
|
public void setTemplateCode(String templateCode) {
|
TemplateCode = templateCode;
|
}
|
}
|