以下に示すように:
public static string getConfig(string key){properties pros = new Properties();文字列値= ""; try {pros.load(new inputstreamReader(object.class.getResourceasStream( "/properties.properties")、 "utf-8")); value = pros.get(key).toString(); } catch(ioexception e){log.error(e.getmessage()); } return値; }上記は、Properties Configurationファイルを読み取るときに、Java Garled Chinese Codeのソリューションの完全な内容です。誰もがwulin.comをもっとサポートすることを願っています〜