FileName:配置文件的文件名(带后缀)
key:想要读取配置文件中的关键字key(如下图红框中的key)

	public static String GetValues(String FileName, String key) throws IOException {
		Properties properties = new Properties();
		// 使用InPutStream流读取properties文件
		String path = RuntimeEnv.getInstance().getNCHome() + File.separator + "resources" + File.separator
				+ "gytzconfig" + File.separator + FileName;
		BufferedReader bufferedReader = new BufferedReader(new FileReader(path));
		properties.load(bufferedReader);
		// 获取key对应的value值
		return String.valueOf(properties.getProperty(key));
	}

读取*.properties文件的配置信息_Java