update some default configuration

This commit is contained in:
陈精华
2023-06-18 09:50:31 +08:00
parent 298df02879
commit 35585580a4
3 changed files with 5 additions and 5 deletions

View File

@ -123,12 +123,12 @@ tif.preview.type = ${KK_TIF_PREVIEW_TYPE:tif}
# 备案信息 # 备案信息
beiAn = beiAn =
#禁止上传类型 #禁止上传类型
prohibit =exe,dll,dat prohibit = exe,dll,dat
#删除密码 #删除密码
sc.password = 123456 delete.password = 123456
#删除 转换后OFFICECADTIFF压缩包源文件 默认开启 节约磁盘空间 #删除 转换后OFFICECADTIFF压缩包源文件 默认开启 节约磁盘空间
delete.source.file = true delete.source.file = true
#配置PDF文件生成图片的像素大小dpi 越高图片质量越清晰同时也会消耗更多的计算资源 #配置PDF文件生成图片的像素大小dpi 越高图片质量越清晰同时也会消耗更多的计算资源
pdf2jpg.dpi = 105 pdf2jpg.dpi = 144
#xlsx格式前端解析 #xlsx格式前端解析
office.type.web = web office.type.web = web

View File

@ -404,7 +404,7 @@ public class ConfigConstants {
public static String getPassword() { public static String getPassword() {
return password; return password;
} }
@Value("${sc.password:123456}") @Value("${delete.password:123456}")
public void setPassword(String password) { public void setPassword(String password) {
setPasswordValue(password); setPasswordValue(password);
} }

View File

@ -88,7 +88,7 @@ public class ConfigRefreshComponent {
size = properties.getProperty("spring.servlet.multipart.max-file-size", ConfigConstants.DEFAULT_SIZE); size = properties.getProperty("spring.servlet.multipart.max-file-size", ConfigConstants.DEFAULT_SIZE);
beiAn = properties.getProperty("beiAn", ConfigConstants.DEFAULT_BEIAN); beiAn = properties.getProperty("beiAn", ConfigConstants.DEFAULT_BEIAN);
prohibit = properties.getProperty("prohibit", ConfigConstants.DEFAULT_PROHIBIT); prohibit = properties.getProperty("prohibit", ConfigConstants.DEFAULT_PROHIBIT);
password = properties.getProperty("sc.password", ConfigConstants.DEFAULT_PASSWORD); password = properties.getProperty("delete.password", ConfigConstants.DEFAULT_PASSWORD);
pdf2JpgDpi = Integer.parseInt(properties.getProperty("pdf2jpg.dpi", ConfigConstants.DEFAULT_PDF2_JPG_DPI)); pdf2JpgDpi = Integer.parseInt(properties.getProperty("pdf2jpg.dpi", ConfigConstants.DEFAULT_PDF2_JPG_DPI));
officeTypeWeb = properties.getProperty("office.type.web", ConfigConstants.DEFAULT_OFFICE_TyPEWEB_DISABLE); officeTypeWeb = properties.getProperty("office.type.web", ConfigConstants.DEFAULT_OFFICE_TyPEWEB_DISABLE);
deleteSourceFile = Boolean.parseBoolean(properties.getProperty("delete.source.file", ConfigConstants.DEFAULT_DELETE_SOURCE_FILE)); deleteSourceFile = Boolean.parseBoolean(properties.getProperty("delete.source.file", ConfigConstants.DEFAULT_DELETE_SOURCE_FILE));