@@ -0,0 +1,1316 @@
+package com.qikemi.packages.email.properties;%0D%0A%0D%0Aimport java.io.FileNotFoundException;%0D%0Aimport java.io.IOException;%0D%0Aimport java.io.InputStream;%0D%0Aimport java.util.Properties;%0D%0A%0D%0Aimport org.apache.log4j.Logger;%0D%0A%0D%0A/**%0D%0A * %0D%0A * Create Date: 2014%E5%B9%B49%E6%9C%8814%E6%97%A5 %E4%B8%8B%E5%8D%883:23:14%0D%0A * Author XieXianbin%3Ca.b@hotmail.com%3E%0D%0A * Source Repositories Address: %3Chttps://github.com/qikemi/mail%3E%0D%0A */%0D%0Apublic class EmailProperties %7B%0D%0A%0D%0A%09private Logger logger = Logger.getLogger(EmailProperties.class);%0D%0A%09public static Properties emailProperties;%0D%0A%09%0D%0A%09public static Properties getEmailProperties() %7B%0D%0A%09%09if(null == emailProperties)%7B%0D%0A%09%09%09EmailProperties properties = new EmailProperties();%0D%0A%09%09%09emailProperties = properties.getProperties();%0D%0A%09%09%7D%0D%0A%09%09return emailProperties;%0D%0A%09%7D%0D%0A%09%0D%0A%09private Properties getProperties()%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 = this.getClass().getResource(%22/email.properties%22).getFile(); %0D%0A%09%09try %7B%0D%0A%09        InputStream in = this.getClass().getResourceAsStream(%22/email.properties%22);  %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(in);%0D%0A%09%09%09in.close();%0D%0A%09%09%09return properties;%0D%0A%09%09%7D catch (FileNotFoundException e) %7B%0D%0A%09%09%09logger.warn(%22FileNotFoundException: -%3E%22 + e.getMessage());%0D%0A%09%09%7D catch (IOException e) %7B%0D%0A%09%09%09logger.warn(%22IOException: -%3E%22 + e.getMessage());%0D%0A%09%09%7D%0D%0A%09%09return null;%0D%0A%09%7D%0D%0A%7D%0D%0A

add mail properties location