From cb4da9b55edfdda5beacca036b99130b33b9449b Mon Sep 17 00:00:00 2001
From: wu <731351411@qq.com>
Date: 星期一, 08 四月 2024 10:58:24 +0800
Subject: [PATCH] 代码更新

---
 UnLoadGlassModule/src/main/java/com/mes/tools/Configuration.java |   32 ++++++++++++++++++++++++++------
 1 files changed, 26 insertions(+), 6 deletions(-)

diff --git a/UnLoadGlassModule/src/main/java/com/mes/tools/Configuration.java b/UnLoadGlassModule/src/main/java/com/mes/tools/Configuration.java
index 0b4ac1a..1f64390 100644
--- a/UnLoadGlassModule/src/main/java/com/mes/tools/Configuration.java
+++ b/UnLoadGlassModule/src/main/java/com/mes/tools/Configuration.java
@@ -5,11 +5,24 @@
 import java.io.InputStream;
 import java.util.Properties;
 
-// Configuration 绫荤敤浜庡姞杞介厤缃枃浠跺苟鎻愪緵璁块棶閰嶇疆椤圭殑鏂规硶銆�
+/**
+ * @author SNG-012
+ *
+ *  Configuration 绫荤敤浜庡姞杞介厤缃枃浠跺苟鎻愪緵璁块棶閰嶇疆椤圭殑鏂规硶銆�
+ */
 public class Configuration {
-    private Properties properties; // Properties 瀵硅薄锛岀敤浜庡瓨鍌ㄩ厤缃枃浠朵腑鐨勯敭鍊煎銆�
 
-    // 鏋勯�犲嚱鏁帮紝鏍规嵁浼犲叆鐨勬枃浠跺悕鍔犺浇閰嶇疆鏂囦欢銆�
+    /**
+     * // Properties 瀵硅薄锛岀敤浜庡瓨鍌ㄩ厤缃枃浠朵腑鐨勯敭鍊煎銆�
+     */
+    private Properties properties;
+
+    /**
+     * @param fileName
+     * @throws IOException
+     *     // 鏋勯�犲嚱鏁帮紝鏍规嵁浼犲叆鐨勬枃浠跺悕鍔犺浇閰嶇疆鏂囦欢銆�
+     */
+
     public Configuration(String fileName) throws IOException {
         // 浣跨敤绫诲姞杞藉櫒鑾峰彇璧勬簮鏂囦欢鐨勮緭鍏ユ祦銆�
         InputStream inputStream = getClass().getClassLoader().getResourceAsStream(fileName);
@@ -17,11 +30,18 @@
         if (inputStream == null) {
             throw new FileNotFoundException("Property file '" + fileName + "' not found in the classpath");
         }
-        properties = new Properties(); // 瀹炰緥鍖朠roperties瀵硅薄銆�
-        properties.load(inputStream); // 浠庤緭鍏ユ祦鍔犺浇閰嶇疆椤广��
+        // 瀹炰緥鍖朠roperties瀵硅薄銆�
+        properties = new Properties();
+        // 浠庤緭鍏ユ祦鍔犺浇閰嶇疆椤广��
+        properties.load(inputStream);
     }
 
-    // 鏍规嵁閰嶇疆椤圭殑閿幏鍙栧叾瀵瑰簲鐨勫�笺��
+    /**
+     * @param key
+     * @return
+     *     // 鏍规嵁閰嶇疆椤圭殑閿幏鍙栧叾瀵瑰簲鐨勫�笺��
+     */
+
     public String getProperty(String key) {
         return properties.getProperty(key);
     }

--
Gitblit v1.8.0