@@ -0,0 +1,951 @@
+package com.qikemi.packages.properties;%0D%0A%0D%0Aimport java.io.File;%0D%0Aimport java.io.FileInputStream;%0D%0Aimport java.io.FileNotFoundException;%0D%0Aimport java.io.IOException;%0D%0Aimport java.util.Properties;%0D%0A%0D%0Aimport com.qikemi.packages.email.utils.encrypt.URLPropertiesUtils;%0D%0A%0D%0Apublic class EmailProperties %7B%0D%0A%0D%0A%09public Properties getEmailProperties() %7B%0D%0A%09%09// %E7%B3%BB%E7%BB%9F%E5%8F%91%E5%B8%83%E8%B7%AF%E5%BE%84%0D%0A%09%09String systemPath = URLPropertiesUtils.class.getClassLoader()%0D%0A%09%09%09%09.getResource(%22/%22).getPath();%0D%0A%09%09// %E7%BD%91%E5%9D%80%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E4%BD%8D%E7%BD%AE%0D%0A%09%09String EMAILPROPERTIES = systemPath + %22email.properties%22;%0D%0A%09%09FileInputStream fileInputStream;%0D%0A%09%09try %7B%0D%0A%09%09%09fileInputStream = new FileInputStream(new File(%0D%0A%09%09%09%09%09EMAILPROPERTIES));%0D%0A%09%09%09// %E5%8A%A0%E8%BD%BD%E5%B1%9E%E6%80%A7%E6%96%87%E4%BB%B6%0D%0A%09%09%09Properties properties = new Properties();%0D%0A%09%09%09properties.load(fileInputStream);%0D%0A%09%09%09fileInputStream.close();%0D%0A%09%09%09return properties;%0D%0A%09%09%7D catch (FileNotFoundException e) %7B%0D%0A%09%09%09e.printStackTrace();%0D%0A%09%09%7D catch (IOException e) %7B%0D%0A%09%09%09e.printStackTrace();%0D%0A%09%09%7D%0D%0A%09%09return null;%0D%0A%09%7D%0D%0A%7D%0D%0A

add Mail Properties