From 35585580a44f2b357d57b84c3ff949be145e19e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=B2=BE=E5=8D=8E?= <842761733@qq.com> Date: Sun, 18 Jun 2023 09:50:31 +0800 Subject: [PATCH] update some default configuration --- server/src/main/config/application.properties | 6 +++--- server/src/main/java/cn/keking/config/ConfigConstants.java | 2 +- .../main/java/cn/keking/config/ConfigRefreshComponent.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/src/main/config/application.properties b/server/src/main/config/application.properties index 0bf9103d..3d4e7445 100644 --- a/server/src/main/config/application.properties +++ b/server/src/main/config/application.properties @@ -123,12 +123,12 @@ tif.preview.type = ${KK_TIF_PREVIEW_TYPE:tif} # 备案信息 beiAn = #禁止上传类型 -prohibit =exe,dll,dat +prohibit = exe,dll,dat #删除密码 -sc.password = 123456 +delete.password = 123456 #删除 转换后OFFICE、CAD、TIFF、压缩包源文件 默认开启 节约磁盘空间 delete.source.file = true #配置PDF文件生成图片的像素大小,dpi 越高,图片质量越清晰,同时也会消耗更多的计算资源。 -pdf2jpg.dpi = 105 +pdf2jpg.dpi = 144 #xlsx格式前端解析 office.type.web = web \ No newline at end of file diff --git a/server/src/main/java/cn/keking/config/ConfigConstants.java b/server/src/main/java/cn/keking/config/ConfigConstants.java index 5ec80e8c..32b09e17 100644 --- a/server/src/main/java/cn/keking/config/ConfigConstants.java +++ b/server/src/main/java/cn/keking/config/ConfigConstants.java @@ -404,7 +404,7 @@ public class ConfigConstants { public static String getPassword() { return password; } - @Value("${sc.password:123456}") + @Value("${delete.password:123456}") public void setPassword(String password) { setPasswordValue(password); } diff --git a/server/src/main/java/cn/keking/config/ConfigRefreshComponent.java b/server/src/main/java/cn/keking/config/ConfigRefreshComponent.java index b35d0f3c..7f860e38 100644 --- a/server/src/main/java/cn/keking/config/ConfigRefreshComponent.java +++ b/server/src/main/java/cn/keking/config/ConfigRefreshComponent.java @@ -88,7 +88,7 @@ public class ConfigRefreshComponent { size = properties.getProperty("spring.servlet.multipart.max-file-size", ConfigConstants.DEFAULT_SIZE); beiAn = properties.getProperty("beiAn", ConfigConstants.DEFAULT_BEIAN); 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)); officeTypeWeb = properties.getProperty("office.type.web", ConfigConstants.DEFAULT_OFFICE_TyPEWEB_DISABLE); deleteSourceFile = Boolean.parseBoolean(properties.getProperty("delete.source.file", ConfigConstants.DEFAULT_DELETE_SOURCE_FILE));