1.
java.lang.Object java.util.Dictionary java.util.Hashtable java.util.Properties2.
InputStream propInput = ReportGenerator.class.getResourceAsStream(templatePropName);
Properties prop = new Properties();
prop.load(propInput);
3.和Hashtable操作一样
String val= prop.getProperty(key)
prop.put("mail.smtp.debug", "true");