From 9b4433fddf5b401edb0aace8a404ac733b122702 Mon Sep 17 00:00:00 2001
From: 田源 <tianyuan@vci-tech.com>
Date: 星期四, 03 四月 2025 14:35:02 +0800
Subject: [PATCH] 添加非密字段显示
---
Source/BladeX-Tool/blade-core-boot/src/main/java/org/springblade/core/boot/props/BladeFileProperties.java | 76 ++++++++++++++++++++++++++++++++++++++
1 files changed, 76 insertions(+), 0 deletions(-)
diff --git a/Source/BladeX-Tool/blade-core-boot/src/main/java/org/springblade/core/boot/props/BladeFileProperties.java b/Source/BladeX-Tool/blade-core-boot/src/main/java/org/springblade/core/boot/props/BladeFileProperties.java
new file mode 100644
index 0000000..a7cc3c9
--- /dev/null
+++ b/Source/BladeX-Tool/blade-core-boot/src/main/java/org/springblade/core/boot/props/BladeFileProperties.java
@@ -0,0 +1,76 @@
+package org.springblade.core.boot.props;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+/**
+ * BladeFileProperties
+ *
+ * @author Chill
+ */
+@Getter
+@Setter
+@ConfigurationProperties("blade.file")
+public class BladeFileProperties {
+
+ /**
+ * 杩滅▼涓婁紶妯″紡
+ */
+ private boolean remoteMode = false;
+
+ /**
+ * 澶栫綉鍦板潃
+ */
+ private String uploadDomain = "http://127.0.0.1:8999";
+
+ /**
+ * 涓婁紶涓嬭浇璺緞(鐗╃悊璺緞)
+ */
+ private String remotePath = System.getProperty("user.dir") + "/target/blade";
+
+ /**
+ * 涓婁紶璺緞(鐩稿璺緞)
+ */
+ private String uploadPath = "/upload";
+
+ /**
+ * 涓嬭浇璺緞
+ */
+ private String downloadPath = "/download";
+
+ /**
+ * 鍥剧墖鍘嬬缉
+ */
+ private Boolean compress = false;
+
+ /**
+ * 鍥剧墖鍘嬬缉姣斾緥
+ */
+ private Double compressScale = 2.00;
+
+ /**
+ * 鍥剧墖缂╂斁閫夋嫨:true鏀惧ぇ;false缂╁皬
+ */
+ private Boolean compressFlag = false;
+
+ /**
+ * 椤圭洰鐗╃悊璺緞
+ */
+ private String realPath = System.getProperty("user.dir");
+
+ /**
+ * 椤圭洰鐩稿璺緞
+ */
+ private String contextPath = "/";
+
+
+ public String getUploadRealPath() {
+ return (remoteMode ? remotePath : realPath) + uploadPath;
+ }
+
+ public String getUploadCtxPath() {
+ return contextPath + uploadPath;
+ }
+
+}
--
Gitblit v1.9.3