package com.vci.frameworkcore.properties; import java.io.IOException; import java.io.InputStream; import java.util.Properties; /** * corba配置文件读取 * @author ludc * @date 2024/6/28 23:11 */ public class ConfigCorbaReader { private static Properties properties; static { properties = new Properties(); try (InputStream input = ConfigCorbaReader.class.getClassLoader().getResourceAsStream("properties/corba.properties")) { if (input == null) { System.err.println("Unable to find corba.properties"); } else { properties.load(input); } } catch (IOException e) { e.printStackTrace(); } } public static String getConfigValue(String key) { return properties.getProperty(key); } }