From af752cfa13b5c748cdf47e6c65c102672bb9107a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=B2=BE=E5=8D=8E?= <842761733@qq.com> Date: Tue, 13 Dec 2022 18:17:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DAutowire=20static=20method?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/main/java/cn/keking/config/ConfigConstants.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/main/java/cn/keking/config/ConfigConstants.java b/server/src/main/java/cn/keking/config/ConfigConstants.java index beea9426..0b6e81fe 100644 --- a/server/src/main/java/cn/keking/config/ConfigConstants.java +++ b/server/src/main/java/cn/keking/config/ConfigConstants.java @@ -275,7 +275,7 @@ public class ConfigConstants { } @Value("${pdf.openFile.disable:true}") - public static void setPdfOpenFileDisable(String pdfOpenFileDisable) { + public void setPdfOpenFileDisable(String pdfOpenFileDisable) { setPdfOpenFileDisableValue(pdfOpenFileDisable); } public static void setPdfOpenFileDisableValue(String pdfOpenFileDisable) { @@ -286,7 +286,7 @@ public class ConfigConstants { return pdfPrintDisable; } @Value("${pdf.print.disable:true}") - public void setPdfPrintDisable(String pdfPrintDisable) { + public void setPdfPrintDisable(String pdfPrintDisable) { setPdfPrintDisableValue(pdfPrintDisable); } public static void setPdfPrintDisableValue(String pdfPrintDisable) { @@ -332,7 +332,7 @@ public class ConfigConstants { } @Value("${file.upload.disable:false}") - public static void setFileUploadDisable(Boolean fileUploadDisable) { + public void setFileUploadDisable(Boolean fileUploadDisable) { setFileUploadDisableValue(fileUploadDisable); }