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
package com.ard.sample.manage.model.common;
 
 
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
/**
 * @author sean
 * @version 1.3.1
 * @date 2023/1/5
 */
@Component
@ConfigurationProperties("cloud-api.app")
public class AppLicenseProperties {
 
    public static String id;
 
    public static String key;
 
    public static String license;
 
    public static String host;
 
    public static Integer port;
 
 
    public void setId(String id) {
        AppLicenseProperties.id = id;
    }
 
    public void setKey(String key) {
        AppLicenseProperties.key = key;
    }
 
    public void setLicense(String license) {
        AppLicenseProperties.license = license;
    }
 
    public void setHost(String host) {
        AppLicenseProperties.host = host;
    }
 
    public void setPort(Integer port) {
        AppLicenseProperties.port = port;
    }
}