/* */ public static final Properties loadProperties(String propertyFileRelativePath) /* */ { /* 67 */ Properties properties = null; /* */ try { /* 69 */ InputStream inputStream = getResourceAsStream(propertyFileRelativePath); /* 70 */ if (inputStream != null) { /* 71 */ properties = new Properties(); /* 72 */ properties.load(inputStream); /* 73 */ inputStream.close(); /* */ } /* */ } /* */ catch (IOException e) {} /* */ /* */ /* 79 */ return properties; /* */ }
Properties property = FileUtility.loadProperties("xx.properties"); String casFlag = property.getProperty("xx");
时间: 2024-10-07 19:05:59