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;}
|
}
|