xuhy
2025-08-05 74aaaab01e109d3f408cf586ea2c4661872190f1
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
59
60
61
62
63
package com.stylefeng.guns.modular.system.util.alipay;
 
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
 
@Component
public class AlipayProperties {
 
    @Value("${alipay.appId}")
    private String appId;//支付宝appid
 
    @Value("${alipay.appCertPath}")
    private String appCertPath;//应用公钥
 
    @Value("${alipay.rootCertPath}")
    private String rootCertPath;//支付宝根证书
 
    @Value("${alipay.alipayPublicCertPath}")
    private String alipayPublicCertPath;//支付宝公钥
 
    @Value("${alipay.privateKey}")
    private String privateKey;//应用私钥
 
    public String getAppId() {
        return appId;
    }
 
    public void setAppId(String appId) {
        this.appId = appId;
    }
 
    public String getAppCertPath() {
        return appCertPath;
    }
 
    public void setAppCertPath(String appCertPath) {
        this.appCertPath = appCertPath;
    }
 
    public String getRootCertPath() {
        return rootCertPath;
    }
 
    public void setRootCertPath(String rootCertPath) {
        this.rootCertPath = rootCertPath;
    }
 
    public String getAlipayPublicCertPath() {
        return alipayPublicCertPath;
    }
 
    public void setAlipayPublicCertPath(String alipayPublicCertPath) {
        this.alipayPublicCertPath = alipayPublicCertPath;
    }
 
    public String getPrivateKey() {
        return privateKey;
    }
 
    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }
}