kongdeqiang
2022-09-19 a9862e81851bbe037edc6bb1c7f562c1e55c0d7f
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
64
65
66
67
68
package com.boying.common;
 
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
 
@Configuration
@PropertySource(value = { "classpath:systemconfig.properties" }, encoding = "utf-8")
public class SystemConfigProperties {
 
    @Bean
    public static PropertySourcesPlaceholderConfigurer propertyConfigurer() {
        return new PropertySourcesPlaceholderConfigurer();
    }
    @Value("${img.uploadPath}")
    private String uploadImgPath;
 
    @Value("${img.showImg}")
    private String showImg;
 
    @Value("${server.ip}")
    private String ip;
 
    @Value("${server.ip2}")
    private String ip2;
 
    @Value("${server.ip3}")
    private String ip3;
 
    @Value("${server.logPath}")
    private String logPath;
 
    public String getUploadImgPath() {
        return uploadImgPath;
    }
 
    public void setUploadImgPath(String uploadImgPath) {
        this.uploadImgPath = uploadImgPath;
    }
 
    public String getShowImg() {
        return showImg;
    }
 
    public void setShowImg(String showImg) {
        this.showImg = showImg;
    }
 
    public String getIp() {
        return ip;
    }
 
    public void setIp(String ip) {
        this.ip = ip;
    }
 
    public String getIp2() {
        return ip2;
    }
 
    public String getIp3() {
        return ip3;
    }
 
    public String getLogPath(){return logPath;}
}