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.uploadPath2}")
|
private String uploadImgPath2;
|
|
@Value("${img.uploadUserPath}")
|
private String uploadUserPath;
|
|
@Value("${img.showImg}")
|
private String showImg;
|
|
@Value("${img.showImg2}")
|
private String showImg2;
|
|
@Value("${img.showImg3}")
|
private String showImg3;
|
|
@Value("${server.ip}")
|
private String ip;
|
|
@Value("${server.ip2}")
|
private String ip2;
|
|
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 getUploadUserPath() {
|
return uploadUserPath;
|
}
|
|
public String getShowImg2() {
|
return showImg2;
|
}
|
|
public String getUploadImgPath2() {
|
return uploadImgPath2;
|
}
|
|
public String getShowImg3() {
|
return showImg3;
|
}
|
}
|