Update EmailConfig.java

wanglirong_branch
hnu202326010328 7 months ago committed by hnu202326010318
parent b71c490b41
commit 5630662612

@ -23,8 +23,18 @@ public class EmailConfig {
ex.printStackTrace();
}
}
/**
* SMTP
*
* @return SMTP
*/
public static int getPort() {
return Integer.parseInt(properties.getProperty("smtp.port"));
}
/**
* SMTP
*
* @return SMTP
@ -33,13 +43,15 @@ public class EmailConfig {
return properties.getProperty("smtp.host");
}
/**
* SMTP
* SMTP
*
* @return SMTP
* @return SMTP
*/
public static int getPort() {
return Integer.parseInt(properties.getProperty("smtp.port"));
public static String getPassword() {
return properties.getProperty("smtp.password");
}
/**
@ -50,13 +62,4 @@ public class EmailConfig {
public static String getUsername() {
return properties.getProperty("smtp.username");
}
/**
* SMTP
*
* @return SMTP
*/
public static String getPassword() {
return properties.getProperty("smtp.password");
}
}
Loading…
Cancel
Save