new config item support environment config

This commit is contained in:
陈精华
2023-07-03 14:34:40 +08:00
parent bfe4f73b49
commit a936113709
6 changed files with 27 additions and 29 deletions

View File

@@ -42,7 +42,7 @@ public class ConfigConstants {
private static String pdfBookmarkDisable;
private static Boolean fileUploadDisable;
private static String tifPreviewType;
private static String beiAn;
private static String beian;
private static String[] prohibit = {};
private static String size;
private static String password;
@@ -368,15 +368,15 @@ public class ConfigConstants {
ConfigConstants.tifPreviewType = tifPreviewType;
}
public static String getBeiAn() {
return beiAn;
public static String getBeian() {
return beian;
}
@Value("${beiAn:}")
public void setBeiAn(String beiAn) {
setBeiAnValue(beiAn);
@Value("${beian:default}")
public void setBeian(String beian) {
setBeianValue(beian);
}
public static void setBeiAnValue(String beiAn) {
ConfigConstants.beiAn = beiAn;
public static void setBeianValue(String beian) {
ConfigConstants.beian = beian;
}
public static String[] getProhibit() {
return prohibit;