1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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;
    }
}